diff options
Diffstat (limited to 'platform/qt/src/sqlite3.cpp')
-rw-r--r-- | platform/qt/src/sqlite3.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/platform/qt/src/sqlite3.cpp b/platform/qt/src/sqlite3.cpp index d27ebf354d..6427126875 100644 --- a/platform/qt/src/sqlite3.cpp +++ b/platform/qt/src/sqlite3.cpp @@ -26,22 +26,14 @@ namespace sqlite { void checkQueryError(const QSqlQuery& query) { QSqlError lastError = query.lastError(); if (lastError.type() != QSqlError::NoError) { -#if QT_VERSION >= 0x050300 throw Exception { lastError.nativeErrorCode().toInt(), lastError.databaseText().toStdString() }; -#else - throw Exception { lastError.number(), lastError.databaseText().toStdString() }; -#endif } } void checkDatabaseError(const QSqlDatabase &db) { QSqlError lastError = db.lastError(); if (lastError.type() != QSqlError::NoError) { -#if QT_VERSION >= 0x050300 throw Exception { lastError.nativeErrorCode().toInt(), lastError.databaseText().toStdString() }; -#else - throw Exception { lastError.number(), lastError.databaseText().toStdString() }; -#endif } } |