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>
Thu, 26 Jan 2012 06:02:13 +0000 (07:02 +0100)
commitb23631015c23a49e3b4d296ea0a6266bfce3d4f1
treeebdbdf4c0102cfcc7d5461f8bfe23d413d03cb87
parent1f1874293eff08db6d831f864cfbe21ddb6f753c
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>
src/sql/drivers/sqlite/qsql_sqlite.cpp
tests/auto/qsqldatabase/tst_qsqldatabase.cpp
tests/auto/qsqlquery/tst_qsqlquery.cpp