Handle the 'real' datatype correctly in the SQLite driver
authorAndy Shaw <andy.shaw@digia.com>
Thu, 19 Jan 2012 20:39:30 +0000 (21:39 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 3 Feb 2012 14:09:03 +0000 (15:09 +0100)
commit5bab4744bad247f3b93792f9ed4b578b0f780296
tree3bbbd704ffb422b75763acf06a21ca3dfd78d5f1
parent1175ec444f2453fc773f288f1087fe6bdad340c0
Handle the 'real' datatype correctly in the SQLite driver

The 'real' datatype should be seen as a QVariant::Double type and not as
a QVariant::String type otherwise it does not get presented correctly
when using a non Qt application to access it.

Test is included for QSqlQuery.

Task-number: QTBUG-16373

Change-Id: Ie323ce49eb95e4d6bb4c3814ba9a957a63f4b259
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
(cherry picked from commit b23631015c23a49e3b4d296ea0a6266bfce3d4f1)
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
src/sql/drivers/sqlite/qsql_sqlite.cpp
tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp
tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp