diff options
author | Yuecel Ahi <y.ahi@tms-bonn.de> | 2009-11-02 15:49:55 +1000 |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2009-11-02 15:52:03 +1000 |
commit | 2c99050cbf88325f0316159ac35bd34010035bf9 (patch) | |
tree | 111bf2ebfcad978680be76e76e94bc32847d5ad8 /src/sql/drivers/sqlite | |
parent | d26bc43093cc6ed8d387abedcde0952ec24c0e0b (diff) | |
download | qt4-tools-2c99050cbf88325f0316159ac35bd34010035bf9.tar.gz |
Fixed handling of database level precision policy for sqlite driver.
Reviewed-by: Bill King <bill.king@nokia.com>
Diffstat (limited to 'src/sql/drivers/sqlite')
-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 2766ccaef0..8355de2921 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; |