Skip to content

Commit dc5ecae

Browse files
committed
Move assertion after out_sqlda check
1 parent f2a30b7 commit dc5ecae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ibase_query.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,12 +1529,12 @@ static void _php_ibase_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int fetch_type)
15291529
RETURN_FALSE;
15301530
}
15311531

1532-
assert(ib_query->out_fields_count > 0);
1533-
15341532
if (ib_query->out_sqlda == NULL || !ib_query->has_more_rows || !ib_query->is_open) {
15351533
RETURN_FALSE;
15361534
}
15371535

1536+
assert(ib_query->out_fields_count > 0);
1537+
15381538
if (ib_query->statement_type != isc_info_sql_stmt_exec_procedure) {
15391539
if (isc_dsql_fetch(IB_STATUS, &ib_query->stmt, 1, ib_query->out_sqlda)) {
15401540
ib_query->has_more_rows = 0;

0 commit comments

Comments
 (0)