summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2009-04-08 05:40:24 (GMT)
committerBill King <bill.king@nokia.com>2009-04-08 05:40:24 (GMT)
commit9565e3420bdc214c389aa513748da11ff16b1fca (patch)
tree26f68148e1da4d060eb9cdb47f406d4b76ad0c62 /src
parent25b8d04ad9f2d5b89e81f56212b4dbfaeff1304d (diff)
downloadQt-9565e3420bdc214c389aa513748da11ff16b1fca.zip
Qt-9565e3420bdc214c389aa513748da11ff16b1fca.tar.gz
Qt-9565e3420bdc214c389aa513748da11ff16b1fca.tar.bz2
DB2 driver returning double field as empty
The high precision code path was getting an empty string on the second call to getstringdata, which was causing it to return empty for the field. Really only needed to call it once anyway, so use the original call. Reviewed-by: Justin McPherson
Diffstat (limited to 'src')
-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 5d221b8..2786dbb 100644
--- a/src/sql/drivers/db2/qsql_db2.cpp
+++ b/src/sql/drivers/db2/qsql_db2.cpp
@@ -1058,7 +1058,7 @@ QVariant QDB2Result::data(int field)
case QSql::HighPrecision:
default:
// length + 1 for the comma
- v = new QVariant(qGetStringData(d->hStmt, field, info.length() + 1, isNull));
+ v = new QVariant(value);
ok = true;
break;
}