diff options
author | François Andriot <francois.andriot@free.fr> | 2019-12-07 17:40:56 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-12-08 19:17:12 +0100 |
commit | bb14fad70e2118dc24fe811b184ad06d5268ff4b (patch) | |
tree | 2b09cd99213798e863ec916144029ea6e4b09b2c /src/svnqt/cache | |
parent | 24c6954b0bbc47ca8a095030b7d1600e71b1a7b9 (diff) | |
download | tdesvn-bb14fad70e2118dc24fe811b184ad06d5268ff4b.tar.gz tdesvn-bb14fad70e2118dc24fe811b184ad06d5268ff4b.zip |
Disable built-in sqlite3 plugin for TQt SQL.
Signed-off-by: François Andriot <francois.andriot@free.fr>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 46106f77652748020d25e1fe28c54f50a8da84b0)
Diffstat (limited to 'src/svnqt/cache')
-rw-r--r-- | src/svnqt/cache/LogCache.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/svnqt/cache/LogCache.cpp b/src/svnqt/cache/LogCache.cpp index d1f5aaa..a3cb590 100644 --- a/src/svnqt/cache/LogCache.cpp +++ b/src/svnqt/cache/LogCache.cpp @@ -10,10 +10,9 @@ #include "svnqt/cache/DatabaseException.hpp" #ifndef NO_SQLITE3 -#include "sqlite3/qsql_sqlite3.h" -#define SQLTYPE "QSQLITE3" +#define SQLTYPE "TQSQLITE3" #else -#define SQLTYPE "QSQLITE" +#define SQLTYPE "TQSQLITE" #endif #define SQLMAIN "logmain-logcache" @@ -262,11 +261,6 @@ void LogCache::setupCachePath() void LogCache::setupMainDb() { -#ifndef NO_SQLITE3 - if (!TQSqlDatabase::isDriverAvailable(SQLTYPE)) { - TQSqlDatabase::registerSqlDriver(SQLTYPE,new TQSqlDriverCreator<TQSQLite3Driver>); - } -#endif TQDataBase mainDB = m_CacheData->getMainDB(); if (!mainDB || !mainDB->open()) { tqWarning("Failed to open main database: %s", (mainDB?mainDB->lastError().text().TOUTF8().data():"No database object.")); |