diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2014-05-24 16:19:34 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-05-24 16:19:34 +0200 |
commit | a44a713fec2e2c3678d64307620225c11cbe955b (patch) | |
tree | b718479bf854d112c0cc66b7bbc79e5b894d7767 /src/sql/qsqldatabase.cpp | |
parent | bb6df872fea9a8980016b9e54eea2fbde00062c0 (diff) | |
download | tqt3-a44a713fec2e2c3678d64307620225c11cbe955b.tar.gz tqt3-a44a713fec2e2c3678d64307620225c11cbe955b.zip |
Add sqlite3 plugin
Diffstat (limited to 'src/sql/qsqldatabase.cpp')
-rw-r--r-- | src/sql/qsqldatabase.cpp | 12 |
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(); |