Skip to content

Commit fcf8f2b

Browse files
author
Popa Adrian Marius
committed
Checks for NULL are wrong as the values can be provided by the triggers
1 parent 9f98a43 commit fcf8f2b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

ext/interbase/ibase_query.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -672,14 +672,7 @@ static int _php_ibase_bind(XSQLDA *sqlda, zval ***b_vars, BIND_BUF *buf, /* {{{
672672
if (! force_null) break;
673673

674674
case IS_NULL:
675-
676-
/* complain if this field doesn't allow NULL values */
677-
if (! (var->sqltype & 1)) {
678-
_php_ibase_module_error("Parameter %d: non-empty value required" TSRMLS_CC, i+1);
679-
rv = FAILURE;
680-
} else {
681675
buf[i].sqlind = -1;
682-
}
683676

684677
if (var->sqltype & SQL_ARRAY) ++array_cnt;
685678

0 commit comments

Comments
 (0)