summaryrefslogtreecommitdiffstats
path: root/src/sql
diff options
context:
space:
mode:
authorDerick Hawcroft <derick.hawcroft@nokia.com>2009-11-05 00:35:48 (GMT)
committerDerick Hawcroft <derick.hawcroft@nokia.com>2009-11-05 00:42:29 (GMT)
commit91c09562ed9c6eb1bd3a4dbd84a8cc64647751ee (patch)
treeb4f8444956c3cb0d523c8f137e8780063735801b /src/sql
parent5906504ec0aefed858d63c38fd17f5ec61743e96 (diff)
downloadQt-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.cpp2
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
{