Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.8.4
-
None
-
9501e92841d0a97ff5083f0000947a2e795f61a2 (qt/qtbase/5.12)
Description
With the following code:
QSqlQuery query("select * from person where ID=101"); query.exec("insert into person values(108, 'Maria2', 'Papadopoulos')"); qDebug()<<query.executedQuery().toAscii();
executedQuery() returns incorrect query since SqlQuery::exec(const QString& query) does not set executedQuery -variable. But calling bool QSqlQuery::exec() sets the executedQuery, and then correct query is returned with QSqlQuery::executedQuery().
Attachments
For Gerrit Dashboard: QTBUG-28883 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
214323,5 | Replace executedQuery when executing a new query | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |