summaryrefslogtreecommitdiffstats
path: root/src/sql/drivers/ibase
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@digia.com>2013-08-21 14:25:55 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-21 16:39:55 +0200
commit9d0b190f4b27e64d0e5d532c6a819dae076c3274 (patch)
tree6ac978a55648a21a2ad3cfaeefb32e1011deef9a /src/sql/drivers/ibase
parent35fd077c803b7465325a94f02da3c4e10cb55bee (diff)
Construct a valid QTime when creating timestamps for iBase SQL driver.
0e62fc73c905d1f476f3c1493db1bde8096ac609 requires this. Task-number: QTBUG-29261 Change-Id: Idd8b630c72d0fd1c255695a8c2c22f9fe32767ee Reviewed-by: John Layt <jlayt@kde.org>
Diffstat (limited to 'src/sql/drivers/ibase')
-rw-r--r--src/sql/drivers/ibase/qsql_ibase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sql/drivers/ibase/qsql_ibase.cpp b/src/sql/drivers/ibase/qsql_ibase.cpp
index bd97db189c..e4979e54a4 100644
--- a/src/sql/drivers/ibase/qsql_ibase.cpp
+++ b/src/sql/drivers/ibase/qsql_ibase.cpp
@@ -240,7 +240,7 @@ static ISC_TIMESTAMP toTimeStamp(const QDateTime &dt)
static QDateTime fromTimeStamp(char *buffer)
{
static const QDate bd(1858, 11, 17);
- QTime t;
+ QTime t(0, 0);
QDate d;
// have to demangle the structure ourselves because isc_decode_time