Changeset View
Changeset View
Standalone View
Standalone View
src/drivers/mysql/MysqlCursor.cpp
Show All 23 Lines | |||||
24 | #include "KDbError.h" | 24 | #include "KDbError.h" | ||
25 | #include "KDb.h" | 25 | #include "KDb.h" | ||
26 | #include "KDbRecordData.h" | 26 | #include "KDbRecordData.h" | ||
27 | 27 | | |||
28 | #include <limits.h> | 28 | #include <limits.h> | ||
29 | 29 | | |||
30 | #define BOOL bool | 30 | #define BOOL bool | ||
31 | 31 | | |||
32 | MysqlCursor::MysqlCursor(KDbConnection* conn, const KDbEscapedString& sql, int cursor_options) | 32 | MysqlCursor::MysqlCursor(KDbConnection* conn, const KDbEscapedString& sql, | ||
33 | : KDbCursor(conn, sql, cursor_options) | 33 | KDbCursor::Options options) | ||
34 | : KDbCursor(conn, sql, options | KDbCursor::Option::Buffered) | ||||
34 | , d(new MysqlCursorData(conn)) | 35 | , d(new MysqlCursorData(conn)) | ||
35 | { | 36 | { | ||
36 | m_options |= Buffered; | | |||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | MysqlCursor::MysqlCursor(KDbConnection* conn, KDbQuerySchema* query, int options) | 39 | MysqlCursor::MysqlCursor(KDbConnection* conn, KDbQuerySchema* query, KDbCursor::Options options) | ||
40 | : KDbCursor(conn, query, options) | 40 | : KDbCursor(conn, query, options | KDbCursor::Option::Buffered) | ||
41 | , d(new MysqlCursorData(conn)) | 41 | , d(new MysqlCursorData(conn)) | ||
42 | { | 42 | { | ||
43 | m_options |= Buffered; | | |||
44 | } | 43 | } | ||
45 | 44 | | |||
46 | MysqlCursor::~MysqlCursor() | 45 | MysqlCursor::~MysqlCursor() | ||
47 | { | 46 | { | ||
48 | close(); | 47 | close(); | ||
49 | delete d; | 48 | delete d; | ||
50 | } | 49 | } | ||
51 | 50 | | |||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |