diff options
Diffstat (limited to 'src/sql/drivers/oci')
-rw-r--r-- | src/sql/drivers/oci/qsql_oci.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/sql/drivers/oci/qsql_oci.cpp b/src/sql/drivers/oci/qsql_oci.cpp index 02eda36c9a..82dc854c3f 100644 --- a/src/sql/drivers/oci/qsql_oci.cpp +++ b/src/sql/drivers/oci/qsql_oci.cpp @@ -1962,13 +1962,8 @@ bool QOCIResult::exec() 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 |