diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-14 21:37:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-14 21:37:51 +0000 |
commit | 2176199f9c492656df911ca217ac32d03cb1931d (patch) | |
tree | e0f75a3f4f6a52b7a6e2777f622efed211ea2ef9 /src/svnqt | |
parent | c6b29717327388357badda064ef1ced71932406e (diff) | |
download | tdesvn-2176199f9c492656df911ca217ac32d03cb1931d.tar.gz tdesvn-2176199f9c492656df911ca217ac32d03cb1931d.zip |
Convert accidental instances of STQL to the proper SQL
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1247182 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/svnqt')
-rw-r--r-- | src/svnqt/cache/LogCache.cpp | 18 | ||||
-rw-r--r-- | src/svnqt/cache/sqlite3/qsql_sqlite3.cpp | 4 | ||||
-rw-r--r-- | src/svnqt/cache/sqlite3/qsql_sqlite3.h | 6 |
3 files changed, 14 insertions, 14 deletions
diff --git a/src/svnqt/cache/LogCache.cpp b/src/svnqt/cache/LogCache.cpp index c2261c8..9534834 100644 --- a/src/svnqt/cache/LogCache.cpp +++ b/src/svnqt/cache/LogCache.cpp @@ -9,15 +9,15 @@ #include "svnqt/path.hpp" #include "svnqt/cache/DatabaseException.hpp" -#ifndef NO_STQLITE3 +#ifndef NO_SQLITE3 #include "sqlite3/qsql_sqlite3.h" #define SQLTYPE "QSQLITE3" #else #define SQLTYPE "QSQLITE" #endif -#define STQLMAIN "logmain-logcache" -#define STQLMAINTABLE "logdb" +#define SQLMAIN "logmain-logcache" +#define SQLMAINTABLE "logdb" namespace svn { namespace cache { @@ -93,7 +93,7 @@ public: TQDataBase _mdb = getMainDB(); TQSqlQuery query1(TQString(),_mdb); - TQString q("insert into "+TQString(STQLMAINTABLE)+" (reposroot) VALUES('"+reposroot+"')"); + TQString q("insert into "+TQString(SQLMAINTABLE)+" (reposroot) VALUES('"+reposroot+"')"); _mdb->transaction(); query1.exec(q); @@ -178,9 +178,9 @@ public: { if (!m_mainDB.hasLocalData()) { unsigned i=0; - TQString _key = STQLMAIN; + TQString _key = SQLMAIN; while (TQSqlDatabase::contains(_key)) { - _key.sprintf("%s-%i",STQLMAIN,i++); + _key.sprintf("%s-%i",SQLMAIN,i++); } qDebug("The key is now: %s",_key.TOUTF8().data()); @@ -209,7 +209,7 @@ public: TQString LogCache::s_CACHE_FOLDER="logcache"; -const TQString LogCacheData::s_reposSelect=TQString("SELECT id from ")+TQString(STQLMAINTABLE)+TQString(" where reposroot=? ORDER by id DESC"); +const TQString LogCacheData::s_reposSelect=TQString("SELECT id from ")+TQString(SQLMAINTABLE)+TQString(" where reposroot=? ORDER by id DESC"); /*! \fn svn::cache::LogCache::LogCache() @@ -273,7 +273,7 @@ void LogCache::setupMainDb() } else { TQSqlQuery q(TQString(), mainDB); mainDB->transaction(); - if (!q.exec("CREATE TABLE IF NOT EXISTS \""+TQString(STQLMAINTABLE)+"\" (\"reposroot\" TEXT,\"id\" INTEGER PRIMARY KEY NOT NULL);")) { + if (!q.exec("CREATE TABLE IF NOT EXISTS \""+TQString(SQLMAINTABLE)+"\" (\"reposroot\" TEXT,\"id\" INTEGER PRIMARY KEY NOT NULL);")) { qWarning("Failed create main database: " + mainDB->lastError().text()); } mainDB->commit(); @@ -311,7 +311,7 @@ TQDataBase svn::cache::LogCache::reposDb(const TQString&aRepository) */ TQStringList svn::cache::LogCache::cachedRepositories()const { - static TQString s_q(TQString("select \"reposroot\" from ")+TQString(STQLMAINTABLE)+TQString("order by reposroot")); + static TQString s_q(TQString("select \"reposroot\" from ")+TQString(SQLMAINTABLE)+TQString("order by reposroot")); TQDataBase mainDB = m_CacheData->getMainDB(); TQStringList _res; if (!mainDB || !mainDB->open()) { diff --git a/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp b/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp index 408cb32..1f4e616 100644 --- a/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp +++ b/src/svnqt/cache/sqlite3/qsql_sqlite3.cpp @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Implementation of STQLite driver classes. +** Implementation of SQLite driver classes. ** ** Copyright (C) 1992-2003 Trolltech AS. All rights reserved. ** @@ -285,7 +285,7 @@ bool TQSQLite3Driver::hasFeature(DriverFeature f) const } /* - STQLite dbs have no user name, passwords, hosts or ports. + SQLite dbs have no user name, passwords, hosts or ports. just file names. */ bool TQSQLite3Driver::open(const TQString & db, const TQString &, const TQString &, const TQString &, int, const TQString &) diff --git a/src/svnqt/cache/sqlite3/qsql_sqlite3.h b/src/svnqt/cache/sqlite3/qsql_sqlite3.h index 7c474ca..67baaa4 100644 --- a/src/svnqt/cache/sqlite3/qsql_sqlite3.h +++ b/src/svnqt/cache/sqlite3/qsql_sqlite3.h @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Definition of STQLite driver classes. +** Definition of SQLite driver classes. ** ** Copyright (C) 1992-2003 Trolltech AS. All rights reserved. ** @@ -12,8 +12,8 @@ ** ****************************************************************************/ -#ifndef TQSQL_STQLITE3_H -#define TQSQL_STQLITE3_H +#ifndef TQSQL_SQLITE3_H +#define TQSQL_SQLITE3_H #include <tqsqldriver.h> #include <tqsqlresult.h> |