summaryrefslogtreecommitdiffstats
path: root/kexi/kexidb/drivers/mySQL/mysqldriver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/kexidb/drivers/mySQL/mysqldriver.cpp')
-rw-r--r--kexi/kexidb/drivers/mySQL/mysqldriver.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kexi/kexidb/drivers/mySQL/mysqldriver.cpp b/kexi/kexidb/drivers/mySQL/mysqldriver.cpp
index 9a1213b0..4d7db160 100644
--- a/kexi/kexidb/drivers/mySQL/mysqldriver.cpp
+++ b/kexi/kexidb/drivers/mySQL/mysqldriver.cpp
@@ -191,9 +191,9 @@ TQCString MySqlDriver::escapeString(const TQCString& str) const
//! see http://dev.mysql.com/doc/refman/5.0/en/string-syntax.html
return TQCString("'")+TQCString(str)
- .tqreplace( '\\', "\\\\" )
- .tqreplace( '\'', "\\''" )
- .tqreplace( '"', "\\\"" )
+ .replace( '\\', "\\\\" )
+ .replace( '\'', "\\''" )
+ .replace( '"', "\\\"" )
+ TQCString("'");
}
@@ -201,11 +201,11 @@ TQCString MySqlDriver::escapeString(const TQCString& str) const
* the name with single quotes.
*/
TQString MySqlDriver::drv_escapeIdentifier( const TQString& str) const {
- return TQString(str).tqreplace('`', "'");
+ return TQString(str).replace('`', "'");
}
TQCString MySqlDriver::drv_escapeIdentifier( const TQCString& str) const {
- return TQCString(str).tqreplace('`', "'");
+ return TQCString(str).replace('`', "'");
}
#include "mysqldriver.moc"