summaryrefslogtreecommitdiffstats
path: root/src/sql/drivers
diff options
context:
space:
mode:
authorKarim Pinter <karim.pinter@digia.com>2013-02-18 12:52:04 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-24 16:44:21 (GMT)
commit40c3f4a5a567a536cd1cbf3ab089da52627650df (patch)
tree88fa6a5fb4bbfca824d8f4bca957ffd3d32acecd /src/sql/drivers
parentb4212c94967526e6f3d718171ee775a2f0a8d699 (diff)
downloadQt-40c3f4a5a567a536cd1cbf3ab089da52627650df.zip
Qt-40c3f4a5a567a536cd1cbf3ab089da52627650df.tar.gz
Qt-40c3f4a5a567a536cd1cbf3ab089da52627650df.tar.bz2
Fix DB2 driver X64 Linux Build
On X64 Linux DB2 driver build give an error on BIGINT conversion to QVariant, casting it to qint64 solved the problem. Task-number: QTBUG-20172 Change-Id: Id11b8a4b1f4ed3d5ed9854dfb53526d401b7d97d (cherry picked from qtbase/c8e34ed678145f2e5709d39007e27e186d1bc1f9) Reviewed-by: Mark Brand <mabrand@mabrand.nl>
Diffstat (limited to 'src/sql/drivers')
-rw-r--r--src/sql/drivers/db2/qsql_db2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sql/drivers/db2/qsql_db2.cpp b/src/sql/drivers/db2/qsql_db2.cpp
index 7a9d1cb..459b056 100644
--- a/src/sql/drivers/db2/qsql_db2.cpp
+++ b/src/sql/drivers/db2/qsql_db2.cpp
@@ -1030,7 +1030,7 @@ QVariant QDB2Result::data(int field)
v = new QVariant(qGetIntData(d->hStmt, field, isNull));
break;
case QSql::LowPrecisionInt64:
- v = new QVariant(qGetBigIntData(d->hStmt, field, isNull));
+ v = new QVariant((qint64) qGetBigIntData(d->hStmt, field, isNull));
break;
case QSql::LowPrecisionDouble:
v = new QVariant(qGetDoubleData(d->hStmt, field, isNull));