Improve type detection for query results
authorAndy Shaw <andy.shaw@digia.com>
Fri, 2 Mar 2012 09:46:57 +0000 (10:46 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 7 Mar 2012 06:26:37 +0000 (07:26 +0100)
commit678ab52ccba0b6a6903e9aee404dbe84fb74c91d
tree3e22c99492d9c4fedf0c9d1660b41216eccefd98
parentdd7a06d0c9eda4bdda2db3160930d8267d1bb821
Improve type detection for query results

When an aggregate function is used for a column in a SQL resultset then
it should ensure that the right data type is reported for that column.
This also concerns expressions when the returned column does not map
directly to a table column.

Test included for this.

Task-number: QTBUG-22038
Change-Id: I07487694c0ed393d46af06e232914fe923356a99
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
src/sql/drivers/sqlite/qsql_sqlite.cpp
tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp