Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.4
-
None
Description
This code will create only "table_1" table:
QSqlDatabase db = QSqlDatabase::addDatabase( "QSQLITE" );
QSqlQuery query( db );
query.exec( "CREATE TABLE table_1 (a); CREATE TABLE table_2 (b);" );
As i have found from the qsql_sqlite.cpp it happens because QSQLiteResult::prepare(const QString &query) ignores the fifth argument of sqlite3_prepare16_v2() which returns unprepared part of the query.