summaryrefslogtreecommitdiff
path: root/src/qt3support
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2009-07-29 11:53:50 +1000
committerBill King <bill.king@nokia.com>2009-07-29 11:56:10 +1000
commit2c9bf5d611cbc293851c80d4df5a46c36eac41f7 (patch)
treec6c54ef6a912e9602149cbd9113499e90ae0e19e /src/qt3support
parente8b1b11731b6cb52985af35d9aaaa680859f99c2 (diff)
downloadqt4-tools-2c9bf5d611cbc293851c80d4df5a46c36eac41f7.tar.gz
Fixes various db2 autotest issues.
Diffstat (limited to 'src/qt3support')
-rw-r--r--src/qt3support/sql/q3sqlcursor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt3support/sql/q3sqlcursor.cpp b/src/qt3support/sql/q3sqlcursor.cpp
index 6b0c69f76d..aa6aae2d1d 100644
--- a/src/qt3support/sql/q3sqlcursor.cpp
+++ b/src/qt3support/sql/q3sqlcursor.cpp
@@ -879,7 +879,7 @@ QString Q3SqlCursor::toString(const QString& prefix, QSqlField* field, const QSt
{
QString f;
if (field && driver()) {
- f = (prefix.length() > 0 ? prefix + QLatin1Char('.') : QString()) + field->name();
+ f = (prefix.length() > 0 ? prefix + QLatin1Char('.') : QString()) + driver()->escapeIdentifier(field->name(), QSqlDriver::FieldName);
f += QLatin1Char(' ') + fieldSep + QLatin1Char(' ');
if (field->isNull()) {
f += QLatin1String("NULL");