diff options
Diffstat (limited to 'kexi/kexidb/drivers/sqlite')
| -rw-r--r-- | kexi/kexidb/drivers/sqlite/sqliteconnection.cpp | 4 | ||||
| -rw-r--r-- | kexi/kexidb/drivers/sqlite/sqliteconnection.h | 2 | ||||
| -rw-r--r-- | kexi/kexidb/drivers/sqlite/sqlitedriver.cpp | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/kexi/kexidb/drivers/sqlite/sqliteconnection.cpp b/kexi/kexidb/drivers/sqlite/sqliteconnection.cpp index 27f190b8e..631f3bc6c 100644 --- a/kexi/kexidb/drivers/sqlite/sqliteconnection.cpp +++ b/kexi/kexidb/drivers/sqlite/sqliteconnection.cpp @@ -366,14 +366,14 @@ bool SQLiteConnection::isReadOnly() const } #ifdef SQLITE2 -bool SQLiteConnection::drv_alterTableName(TableSchema& tableSchema, const TQString& newName, bool tqreplace) +bool SQLiteConnection::drv_alterTableName(TableSchema& tableSchema, const TQString& newName, bool replace) { const TQString oldTableName = tableSchema.name(); const bool destTableExists = this->tableSchema( newName ) != 0; //1. drop the table if (destTableExists) { - if (!tqreplace) + if (!replace) return false; if (!drv_dropTable( newName )) return false; diff --git a/kexi/kexidb/drivers/sqlite/sqliteconnection.h b/kexi/kexidb/drivers/sqlite/sqliteconnection.h index 922e8447a..ab80675e4 100644 --- a/kexi/kexidb/drivers/sqlite/sqliteconnection.h +++ b/kexi/kexidb/drivers/sqlite/sqliteconnection.h @@ -109,7 +109,7 @@ class SQLiteConnection : public Connection \return true on success. More advanced server backends implement this using "ALTER TABLE .. RENAME TO". */ - virtual bool drv_alterTableName(TableSchema& tableSchema, const TQString& newName, bool tqreplace = false); + virtual bool drv_alterTableName(TableSchema& tableSchema, const TQString& newName, bool replace = false); #endif //! for drv_changeFieldProperty() diff --git a/kexi/kexidb/drivers/sqlite/sqlitedriver.cpp b/kexi/kexidb/drivers/sqlite/sqlitedriver.cpp index c5128b63f..80276682b 100644 --- a/kexi/kexidb/drivers/sqlite/sqlitedriver.cpp +++ b/kexi/kexidb/drivers/sqlite/sqlitedriver.cpp @@ -124,12 +124,12 @@ bool SQLiteDriver::drv_isSystemFieldName( const TQString& n ) const TQString SQLiteDriver::escapeString(const TQString& str) const { - return TQString("'")+TQString(str).tqreplace( '\'', "''" ) + "'"; + return TQString("'")+TQString(str).replace( '\'', "''" ) + "'"; } TQCString SQLiteDriver::escapeString(const TQCString& str) const { - return TQCString("'")+TQCString(str).tqreplace( '\'', "''" )+"'"; + return TQCString("'")+TQCString(str).replace( '\'', "''" )+"'"; } TQString SQLiteDriver::escapeBLOB(const TQByteArray& array) const @@ -139,12 +139,12 @@ TQString SQLiteDriver::escapeBLOB(const TQByteArray& array) const TQString SQLiteDriver::drv_escapeIdentifier( const TQString& str) const { - return TQString(str).tqreplace( '"', "\"\"" ); + return TQString(str).replace( '"', "\"\"" ); } TQCString SQLiteDriver::drv_escapeIdentifier( const TQCString& str) const { - return TQCString(str).tqreplace( '"', "\"\"" ); + return TQCString(str).replace( '"', "\"\"" ); } AdminTools* SQLiteDriver::drv_createAdminTools() const |
