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:
parent
37c68503cb
commit
aa2c6690fd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user