diff options
Diffstat (limited to 'src/sql/drivers/sqlite3/tqsql_sqlite3.cpp')
-rw-r--r-- | src/sql/drivers/sqlite3/tqsql_sqlite3.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sql/drivers/sqlite3/tqsql_sqlite3.cpp b/src/sql/drivers/sqlite3/tqsql_sqlite3.cpp index f75feaa1b..df3084c97 100644 --- a/src/sql/drivers/sqlite3/tqsql_sqlite3.cpp +++ b/src/sql/drivers/sqlite3/tqsql_sqlite3.cpp @@ -43,7 +43,7 @@ static TQVariant::Type qSqliteType(int tp) } } -static TQSqlError qMakeError(sqlite3 *access, const TQString &descr, TQSqlError::Type type, +static TQSqlError tqMakeError(sqlite3 *access, const TQString &descr, TQSqlError::Type type, int errorCode = -1) { return TQSqlError(descr, @@ -191,7 +191,7 @@ bool TQSQLite3ResultPrivate::fetchNext(TQtSqlCachedResult::RowCache* row) case SQLITE_MISUSE: default: // something wrong, don't get col info, but still return false - q->setLastError(qMakeError(access, "Unable to fetch row", TQSqlError::Connection, res)); + q->setLastError(tqMakeError(access, "Unable to fetch row", TQSqlError::Connection, res)); finalize(); q->setAt(TQSql::AfterLast); return false; @@ -229,7 +229,7 @@ bool TQSQLite3Result::reset (const TQString &query) &d->stmt, 0); if (res != SQLITE_OK) { - setLastError(qMakeError(d->access, "Unable to execute statement", TQSqlError::Statement, res)); + setLastError(tqMakeError(d->access, "Unable to execute statement", TQSqlError::Statement, res)); d->finalize(); return false; } @@ -309,7 +309,7 @@ bool TQSQLite3Driver::open(const TQString & db, const TQString &, const TQString setOpenError(false); return true; } else { - setLastError(qMakeError(d->access, "Error opening database", + setLastError(tqMakeError(d->access, "Error opening database", TQSqlError::Connection)); setOpenError(true); return false; @@ -320,7 +320,7 @@ void TQSQLite3Driver::close() { if (isOpen()) { if (sqlite3_close(d->access) != SQLITE_OK) - setLastError(qMakeError(d->access, "Error closing database", + setLastError(tqMakeError(d->access, "Error closing database", TQSqlError::Connection)); d->access = 0; setOpen(false); |