QSQLITE support only one statement at a time
authorHonglei Zhang <honglei.zhang@nokia.com>
Wed, 30 Nov 2011 11:26:22 +0000 (13:26 +0200)
committerHonglei Zhang <honglei.zhang@nokia.com>
Wed, 30 Nov 2011 11:26:22 +0000 (13:26 +0200)
commit1ba0ce0cc1ab94f1397114ac8024a60dc7dfbdd8
tree2fe5fe727fe3811a1b4cb83b053780a5c166f714
parent20a154ffc3afacdbc22d00a3c4dd0a2916a14e33
QSQLITE 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
Reviewed-by: Charles Yin
src/sql/drivers/sqlite/qsql_sqlite.cpp
src/sql/kernel/qsqlquery.cpp
tests/auto/qsqlquery/tst_qsqlquery.cpp