diff options
author | Bill King <bill.king@nokia.com> | 2009-04-08 05:40:24 (GMT) |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2009-04-08 05:40:24 (GMT) |
commit | 9565e3420bdc214c389aa513748da11ff16b1fca (patch) | |
tree | 26f68148e1da4d060eb9cdb47f406d4b76ad0c62 /src | |
parent | 25b8d04ad9f2d5b89e81f56212b4dbfaeff1304d (diff) | |
download | Qt-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.cpp | 2 |
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; } |