diff options
author | Derick Hawcroft <derick.hawcroft@nokia.com> | 2009-11-05 00:35:48 (GMT) |
---|---|---|
committer | Derick Hawcroft <derick.hawcroft@nokia.com> | 2009-11-05 00:42:29 (GMT) |
commit | 91c09562ed9c6eb1bd3a4dbd84a8cc64647751ee (patch) | |
tree | b4f8444956c3cb0d523c8f137e8780063735801b /src/sql | |
parent | 5906504ec0aefed858d63c38fd17f5ec61743e96 (diff) | |
download | Qt-91c09562ed9c6eb1bd3a4dbd84a8cc64647751ee.zip Qt-91c09562ed9c6eb1bd3a4dbd84a8cc64647751ee.tar.gz Qt-91c09562ed9c6eb1bd3a4dbd84a8cc64647751ee.tar.bz2 |
Fix retrieval of SQL type "TIME" information for PostgreSQL
PostgreSQL can store/retieve the millisecond part of type "TIME" , so
allow it in the API level.
Task-number: QTBUG-5251
Reviewed-by: Bill King
Diffstat (limited to 'src/sql')
-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 4c78d6a..3e3ea06 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 = QLatin1Char('\'') + field.value().toTime().toString(Qt::ISODate) + QLatin1Char('\''); + r = QLatin1Char('\'') + field.value().toTime().toString(QLatin1String("hh:mm:ss.zzz")) + QLatin1Char('\''); } else #endif { |