SQLite support only one statement at a time
authorHonglei Zhang <honglei.zhang@nokia.com>
Fri, 18 Nov 2011 08:50:07 +0000 (10:50 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 23 Nov 2011 07:36:14 +0000 (08:36 +0100)
commit1d3cfdbfa18585901c214a035d270baacc61048e
treef1e4ec035e9adae782491cf8d92d59c19e0d11b1
parentd1e7294cd2c99a0de5bb838cc6acd106ec52f76e
SQLite support only one statement at a time

SQLite driver support only one statement at a time. This fix makes the
exec and prepare call failed if more than one statements are given.
This is bug fix for QTBUG-21884. Also the behaviour is documented in
the API specification.

Task-number: QTBUG-21884
Change-Id: If1e25a0dd9f9ee38961ef478fc7909f6b05e360a
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
src/sql/drivers/sqlite/qsql_sqlite.cpp
src/sql/kernel/qsqlquery.cpp
tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp