diff options
author | Yuecel Ahi <y.ahi@tms-bonn.de> | 2009-11-02 05:49:55 (GMT) |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2009-11-02 05:52:03 (GMT) |
commit | 2c99050cbf88325f0316159ac35bd34010035bf9 (patch) | |
tree | 111bf2ebfcad978680be76e76e94bc32847d5ad8 /src/sql/drivers | |
parent | d26bc43093cc6ed8d387abedcde0952ec24c0e0b (diff) | |
download | Qt-2c99050cbf88325f0316159ac35bd34010035bf9.zip Qt-2c99050cbf88325f0316159ac35bd34010035bf9.tar.gz Qt-2c99050cbf88325f0316159ac35bd34010035bf9.tar.bz2 |
Fixed handling of database level precision policy for sqlite driver.
Reviewed-by: Bill King <bill.king@nokia.com>
Diffstat (limited to 'src/sql/drivers')
-rw-r--r-- | src/sql/drivers/sqlite/qsql_sqlite.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/sql/drivers/sqlite/qsql_sqlite.cpp b/src/sql/drivers/sqlite/qsql_sqlite.cpp index 2766cca..8355de2 100644 --- a/src/sql/drivers/sqlite/qsql_sqlite.cpp +++ b/src/sql/drivers/sqlite/qsql_sqlite.cpp @@ -228,13 +228,9 @@ bool QSQLiteResultPrivate::fetchNext(QSqlCachedResult::ValueCache &values, int i values[i + idx] = sqlite3_column_int64(stmt, i); break; case QSql::LowPrecisionDouble: - values[i + idx] = sqlite3_column_double(stmt, i); - break; case QSql::HighPrecision: default: - values[i + idx] = QString::fromUtf16(static_cast<const ushort *>( - sqlite3_column_text16(stmt, i)), - sqlite3_column_bytes16(stmt, i) / sizeof(ushort)); + values[i + idx] = sqlite3_column_double(stmt, i); break; }; break; |