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.
Attachments
For Gerrit Dashboard: QTBUG-21884 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
9247,3 | SQLite support only one statement at a time | master | qt/qtbase | Status: MERGED | +2 | 0 |
9385,2 | SQLite support only one statement at a time | master | qt/qtbase | Status: ABANDONED | 0 | 0 |