Skip to content

Commit 18ab788

Browse files
committed
Bring back field's NULL checking
1 parent dc5ecae commit 18ab788

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ibase_query.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,6 +1573,13 @@ static void _php_ibase_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int fetch_type)
15731573

15741574
for(i = 0; i < ib_query->out_fields_count; ++i) {
15751575
XSQLVAR *var = &ib_query->out_sqlda->sqlvar[i];
1576+
1577+
// NULLs are already set
1578+
if (!(((var->sqltype & 1) == 0) || *var->sqlind != -1)) {
1579+
zend_hash_move_forward(ht_ret);
1580+
continue;
1581+
}
1582+
15761583
result = zend_hash_get_current_data(ht_ret);
15771584

15781585
switch (var->sqltype & ~1) {

0 commit comments

Comments
 (0)