Changeset View
Changeset View
Standalone View
Standalone View
src/drivers/sqlite/SqliteConnection.cpp
Show First 20 Lines • Show All 273 Lines • ▼ Show 20 Line(s) | 272 | m_result = KDbResult(ERR_ACCESS_RIGHTS, | |||
---|---|---|---|---|---|
274 | "Check the file's permissions and whether it is already " | 274 | "Check the file's permissions and whether it is already " | ||
275 | "opened and locked by another application.") | 275 | "opened and locked by another application.") | ||
276 | .arg(QDir::fromNativeSeparators(filename))); | 276 | .arg(QDir::fromNativeSeparators(filename))); | ||
277 | return false; | 277 | return false; | ||
278 | } | 278 | } | ||
279 | return true; | 279 | return true; | ||
280 | } | 280 | } | ||
281 | 281 | | |||
282 | KDbCursor* SqliteConnection::prepareQuery(const KDbEscapedString& sql, int cursor_options) | 282 | KDbCursor* SqliteConnection::prepareQuery(const KDbEscapedString& sql, KDbCursor::Options options) | ||
283 | { | 283 | { | ||
284 | return new SqliteCursor(this, sql, cursor_options); | 284 | return new SqliteCursor(this, sql, options); | ||
285 | } | 285 | } | ||
286 | 286 | | |||
287 | KDbCursor* SqliteConnection::prepareQuery(KDbQuerySchema* query, int cursor_options) | 287 | KDbCursor* SqliteConnection::prepareQuery(KDbQuerySchema* query, KDbCursor::Options options) | ||
288 | { | 288 | { | ||
289 | return new SqliteCursor(this, query, cursor_options); | 289 | return new SqliteCursor(this, query, options); | ||
290 | } | 290 | } | ||
291 | 291 | | |||
292 | KDbSqlResult* SqliteConnection::drv_executeSQL(const KDbEscapedString& sql) | 292 | KDbSqlResult* SqliteConnection::drv_executeSQL(const KDbEscapedString& sql) | ||
293 | { | 293 | { | ||
294 | #ifdef KDB_DEBUG_GUI | 294 | #ifdef KDB_DEBUG_GUI | ||
295 | KDb::debugGUI(QLatin1String("ExecuteSQL (SQLite): ") + sql.toString()); | 295 | KDb::debugGUI(QLatin1String("ExecuteSQL (SQLite): ") + sql.toString()); | ||
296 | #endif | 296 | #endif | ||
297 | 297 | | |||
▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines |