summaryrefslogtreecommitdiffstats
path: root/src/sql/qsqldatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sql/qsqldatabase.cpp')
-rw-r--r--src/sql/qsqldatabase.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sql/qsqldatabase.cpp b/src/sql/qsqldatabase.cpp
index 798e79483..606adb9f1 100644
--- a/src/sql/qsqldatabase.cpp
+++ b/src/sql/qsqldatabase.cpp
@@ -68,6 +68,9 @@
#ifdef QT_SQL_SQLITE
#include "drivers/sqlite/qsql_sqlite.h"
#endif
+#ifdef QT_SQL_SQLITE3
+#include "drivers/sqlite3/qsql_sqlite3.h"
+#endif
#ifdef QT_SQL_IBASE
#include "drivers/ibase/qsql_ibase.h"
#endif
@@ -525,6 +528,10 @@ TQStringList TQSqlDatabase::drivers()
if ( !l.contains( "TQSQLITE" ) )
l << "TQSQLITE";
#endif
+#ifdef QT_SQL_SQLITE3
+ if ( !l.contains( "TQSQLITE3" ) )
+ l << "TQSQLITE3";
+#endif
#ifdef QT_SQL_IBASE
if ( !l.contains( "TQIBASE" ) )
l << "TQIBASE";
@@ -665,6 +672,11 @@ void TQSqlDatabase::init( const TQString& type, const TQString& )
d->driver = new TQSQLiteDriver();
#endif
+#ifdef QT_SQL_SQLITE3
+ if ( type == "TQSQLITE3" )
+ d->driver = new TQSQLite3Driver();
+#endif
+
#ifdef QT_SQL_IBASE
if ( type == "TQIBASE" )
d->driver = new TQIBaseDriver();