Changeset View
Changeset View
Standalone View
Standalone View
src/drivers/postgresql/PostgresqlConnection.cpp
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | |||||
59 | 59 | | |||
60 | PostgresqlConnection::~PostgresqlConnection() | 60 | PostgresqlConnection::~PostgresqlConnection() | ||
61 | { | 61 | { | ||
62 | //delete m_trans; | 62 | //delete m_trans; | ||
63 | destroy(); | 63 | destroy(); | ||
64 | delete d; | 64 | delete d; | ||
65 | } | 65 | } | ||
66 | 66 | | |||
67 | KDbCursor* PostgresqlConnection::prepareQuery(const KDbEscapedString& sql, int cursor_options) | 67 | KDbCursor* PostgresqlConnection::prepareQuery(const KDbEscapedString& sql, KDbCursor::Options options) | ||
68 | { | 68 | { | ||
69 | Q_UNUSED(cursor_options); | 69 | return new PostgresqlCursor(this, sql, options); | ||
70 | return new PostgresqlCursor(this, sql, 1); //Always used buffered cursor | | |||
71 | } | 70 | } | ||
72 | 71 | | |||
73 | KDbCursor* PostgresqlConnection::prepareQuery(KDbQuerySchema* query, int cursor_options) | 72 | KDbCursor* PostgresqlConnection::prepareQuery(KDbQuerySchema* query, KDbCursor::Options options) | ||
74 | { | 73 | { | ||
75 | Q_UNUSED(cursor_options); | 74 | return new PostgresqlCursor(this, query, options); | ||
76 | return new PostgresqlCursor(this, query, 1);//Always used buffered cursor | | |||
77 | } | 75 | } | ||
78 | 76 | | |||
79 | bool PostgresqlConnection::drv_connect() | 77 | bool PostgresqlConnection::drv_connect() | ||
80 | { | 78 | { | ||
81 | return true; | 79 | return true; | ||
82 | } | 80 | } | ||
83 | 81 | | |||
84 | bool PostgresqlConnection::drv_getServerVersion(KDbServerVersionInfo* version) | 82 | bool PostgresqlConnection::drv_getServerVersion(KDbServerVersionInfo* version) | ||
▲ Show 20 Lines • Show All 214 Lines • Show Last 20 Lines |