diff options
author | Bill King <bill.king@nokia.com> | 2009-08-11 09:47:57 +1000 |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2009-08-11 09:47:57 +1000 |
commit | 3b3c23bc6d7edebcdb2803859024cec9ffb86440 (patch) | |
tree | d7023208ee1d1a52092a558e3e4a258309b78472 /src | |
parent | 6e699850938527bb25a5453f66d950fa95a8789b (diff) |
Fixes formatting of date strings in psql driver
After the coverity fix, the proper code path executed, which failed to
enquote the date field properly, so this fix fixes that issue.
Diffstat (limited to 'src')
-rw-r--r-- | src/sql/drivers/psql/qsql_psql.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sql/drivers/psql/qsql_psql.cpp b/src/sql/drivers/psql/qsql_psql.cpp index 8e90a06b7c..12711bb348 100644 --- a/src/sql/drivers/psql/qsql_psql.cpp +++ b/src/sql/drivers/psql/qsql_psql.cpp @@ -1133,7 +1133,7 @@ QString QPSQLDriver::formatValue(const QSqlField &field, bool trimStrings) const case QVariant::Time: #ifndef QT_NO_DATESTRING if (field.value().toTime().isValid()) { - r = field.value().toTime().toString(Qt::ISODate); + r = QLatin1Char('\'') + field.value().toTime().toString(Qt::ISODate) + QLatin1Char('\''); } else #endif { |