diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kexi/kexidb/drivers/sqlite/sqlitedriver.cpp | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/kexidb/drivers/sqlite/sqlitedriver.cpp')
-rw-r--r-- | kexi/kexidb/drivers/sqlite/sqlitedriver.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kexi/kexidb/drivers/sqlite/sqlitedriver.cpp b/kexi/kexidb/drivers/sqlite/sqlitedriver.cpp index e2abc246..c5128b63 100644 --- a/kexi/kexidb/drivers/sqlite/sqlitedriver.cpp +++ b/kexi/kexidb/drivers/sqlite/sqlitedriver.cpp @@ -48,9 +48,9 @@ class KexiDB::SQLiteDriverPrivate } }; -//PgSqlDB::PgSqlDB(QObject *parent, const char *name, const QStringList &) -SQLiteDriver::SQLiteDriver( QObject *parent, const char *name, const QStringList &args ) - : Driver( parent, name, args ) +//PgSqlDB::PgSqlDB(TQObject *tqparent, const char *name, const TQStringList &) +SQLiteDriver::SQLiteDriver( TQObject *tqparent, const char *name, const TQStringList &args ) + : Driver( tqparent, name, args ) ,dp( new SQLiteDriverPrivate() ) { d->isFileDriver = true; @@ -66,11 +66,11 @@ SQLiteDriver::SQLiteDriver( QObject *parent, const char *name, const QStringList beh->AUTO_INCREMENT_FIELD_OPTION = ""; //not available beh->AUTO_INCREMENT_TYPE = "INTEGER"; beh->AUTO_INCREMENT_PK_FIELD_OPTION = "PRIMARY KEY"; - beh->AUTO_INCREMENT_REQUIRES_PK = true; + beh->AUTO_INCREMENT_RETQUIRES_PK = true; beh->ROW_ID_FIELD_NAME = "OID"; - beh->_1ST_ROW_READ_AHEAD_REQUIRED_TO_KNOW_IF_THE_RESULT_IS_EMPTY=true; - beh->QUOTATION_MARKS_FOR_IDENTIFIER='"'; - beh->SELECT_1_SUBQUERY_SUPPORTED = true; + beh->_1ST_ROW_READ_AHEAD_RETQUIRED_TO_KNOW_IF_THE_RESULT_IS_EMPTY=true; + beh->TQUOTATION_MARKS_FOR_IDENTIFIER='"'; + beh->SELECT_1_SUBTQUERY_SUPPORTED = true; beh->SQL_KEYWORDS = keywords; initSQLKeywords(29); @@ -110,41 +110,41 @@ SQLiteDriver::drv_createConnection( ConnectionData &conn_data ) return new SQLiteConnection( this, conn_data ); } -bool SQLiteDriver::isSystemObjectName( const QString& n ) const +bool SQLiteDriver::isSystemObjectName( const TQString& n ) const { return Driver::isSystemObjectName(n) || n.lower().startsWith("sqlite_"); } -bool SQLiteDriver::drv_isSystemFieldName( const QString& n ) const +bool SQLiteDriver::drv_isSystemFieldName( const TQString& n ) const { return n.lower()=="_rowid_" || n.lower()=="rowid" || n.lower()=="oid"; } -QString SQLiteDriver::escapeString(const QString& str) const +TQString SQLiteDriver::escapeString(const TQString& str) const { - return QString("'")+QString(str).replace( '\'', "''" ) + "'"; + return TQString("'")+TQString(str).tqreplace( '\'', "''" ) + "'"; } -QCString SQLiteDriver::escapeString(const QCString& str) const +TQCString SQLiteDriver::escapeString(const TQCString& str) const { - return QCString("'")+QCString(str).replace( '\'', "''" )+"'"; + return TQCString("'")+TQCString(str).tqreplace( '\'', "''" )+"'"; } -QString SQLiteDriver::escapeBLOB(const QByteArray& array) const +TQString SQLiteDriver::escapeBLOB(const TQByteArray& array) const { return KexiDB::escapeBLOB(array, KexiDB::BLOBEscapeXHex); } -QString SQLiteDriver::drv_escapeIdentifier( const QString& str) const +TQString SQLiteDriver::drv_escapeIdentifier( const TQString& str) const { - return QString(str).replace( '"', "\"\"" ); + return TQString(str).tqreplace( '"', "\"\"" ); } -QCString SQLiteDriver::drv_escapeIdentifier( const QCString& str) const +TQCString SQLiteDriver::drv_escapeIdentifier( const TQCString& str) const { - return QCString(str).replace( '"', "\"\"" ); + return TQCString(str).tqreplace( '"', "\"\"" ); } AdminTools* SQLiteDriver::drv_createAdminTools() const |