Otherwise, the open statement, say in QSqlQueryModel, will prevent
other statements from running.
Task-number: QTBUG-18608
Change-Id: Icdd6817fb981678be6fb70ade21a8123e152dcf6
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
return false;
}
- if (stmtType == OCI_STMT_SELECT) {
- iters = 0;
- mode = OCI_DEFAULT;
- } else {
- iters = 1;
- mode = d->transaction ? OCI_DEFAULT : OCI_COMMIT_ON_SUCCESS;
- }
+ iters = stmtType == OCI_STMT_SELECT ? 0 : 1;
+ mode = d->transaction ? OCI_DEFAULT : OCI_COMMIT_ON_SUCCESS;
// bind placeholders
if (boundValueCount() > 0