diff options
Diffstat (limited to 'kexi/kexidb/driver.cpp')
-rw-r--r-- | kexi/kexidb/driver.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kexi/kexidb/driver.cpp b/kexi/kexidb/driver.cpp index d192fe87..da77ab72 100644 --- a/kexi/kexidb/driver.cpp +++ b/kexi/kexidb/driver.cpp @@ -237,7 +237,7 @@ bool Driver::isKexiDBSystemObjectName( const TQString& n ) if (!n.lower().startsWith("kexi__")) return false; const TQStringList list( Connection::kexiDBSystemTableNames() ); - return list.tqfind(n.lower())!=list.constEnd(); + return list.find(n.lower())!=list.constEnd(); } bool Driver::isSystemFieldName( const TQString& n ) const @@ -255,7 +255,7 @@ TQString Driver::valueToSQL( uint ftype, const TQVariant& v ) const case Field::Text: case Field::LongText: { TQString s = v.toString(); - return escapeString(s); //TQString("'")+s.tqreplace( '"', "\\\"" ) + "'"; + return escapeString(s); //TQString("'")+s.replace( '"', "\\\"" ) + "'"; } case Field::Byte: case Field::ShortInteger: @@ -267,7 +267,7 @@ TQString Driver::valueToSQL( uint ftype, const TQVariant& v ) const if (v.type()==TQVariant::String) { //workaround for values stored as string that should be casted to floating-point TQString s(v.toString()); - return s.tqreplace(',', "."); + return s.replace(',', "."); } return v.toString(); } @@ -333,21 +333,21 @@ TQCString Driver::escapeIdentifier(const TQCString& str, int options) const needOuterQuotes = true; // ... or if it's a keyword in Kexi's SQL dialect, - else if(d->kexiSQLDict->tqfind(str)) + else if(d->kexiSQLDict->find(str)) needOuterQuotes = true; // ... or if it's a keyword in the backends SQL dialect, // (have already checked !d->driverSQLDict) - else if((options & EscapeDriver) && d->driverSQLDict->tqfind(str)) + else if((options & EscapeDriver) && d->driverSQLDict->find(str)) needOuterQuotes = true; // ... or if the identifier has a space in it... - else if(str.tqfind(' ') != -1) + else if(str.find(' ') != -1) needOuterQuotes = true; if(needOuterQuotes && (options & EscapeKexi)) { const char quote = '"'; - return quote + TQCString(str).tqreplace( quote, "\"\"" ) + quote; + return quote + TQCString(str).replace( quote, "\"\"" ) + quote; } else if (needOuterQuotes) { const char quote = beh->TQUOTATION_MARKS_FOR_IDENTIFIER.latin1(); |