mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
Fix for bug http://bugs.php.net/54426
Checks for NULL are wrong as the values can be provided by the triggers
This commit is contained in:
parent
9f98a430fd
commit
fcf8f2bcaf
1 changed files with 0 additions and 7 deletions
|
@ -672,14 +672,7 @@ static int _php_ibase_bind(XSQLDA *sqlda, zval ***b_vars, BIND_BUF *buf, /* {{{
|
|||
if (! force_null) break;
|
||||
|
||||
case IS_NULL:
|
||||
|
||||
/* complain if this field doesn't allow NULL values */
|
||||
if (! (var->sqltype & 1)) {
|
||||
_php_ibase_module_error("Parameter %d: non-empty value required" TSRMLS_CC, i+1);
|
||||
rv = FAILURE;
|
||||
} else {
|
||||
buf[i].sqlind = -1;
|
||||
}
|
||||
|
||||
if (var->sqltype & SQL_ARRAY) ++array_cnt;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue