|
|
|
@ -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."));
|
|
|
|
|