Interbase: Close the cursor before reopening it later on

Change-Id: If21d33262b8ca53c17a7d236baaa828907116cab
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Andy Shaw 2020-07-31 12:59:32 +02:00
parent 37c68503cb
commit aa2c6690fd

View File

@ -1055,10 +1055,10 @@ bool QIBaseResult::exec()
}
if (ok) {
isc_dsql_free_statement(d->status, &d->stmt, DSQL_close);
if (d->isError(QT_TRANSLATE_NOOP("QIBaseResult", "Unable to close statement")))
return false;
if (colCount() && d->queryType != isc_info_sql_stmt_exec_procedure) {
isc_dsql_free_statement(d->status, &d->stmt, DSQL_close);
if (d->isError(QT_TRANSLATE_NOOP("QIBaseResult", "Unable to close statement")))
return false;
cleanup();
}
if (d->queryType == isc_info_sql_stmt_exec_procedure)