Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
5.12.2
-
None
Description
Database: PostgreSql 9.4
SQL:
CREATE TEMPORARY TABLE test(field integer NOT NULL, CONSTRAINT pk PRIMARY KEY (field)); INSERT INTO test (field) values (1); -- OK INSERT INTO test (field) values (1); -- NOK (PK violation)
In this case QSqlQuery::exec(sql) return TRUE for 5.12.2.
I think error in function:
bool QPSQLResult::reset (const QString& query) { ... ==> we lost PQerrorMessage information for next results here: while (PGresult *nextResultSet = d->drv_d_func()->getResult(d->stmtId)) d->nextResultSets.append(nextResultSet); ... }
Attachments
Issue Links
- duplicates
-
QTBUG-74488 QSqlQuery::exec - behavior changed since 5.12.2
- Closed