]> granicus.if.org Git - php/commitdiff
Fix for bug http://bugs.php.net/54426
authorPopa Adrian Marius <mariuz@php.net>
Tue, 19 Jul 2011 20:23:26 +0000 (20:23 +0000)
committerPopa Adrian Marius <mariuz@php.net>
Tue, 19 Jul 2011 20:23:26 +0000 (20:23 +0000)
Checks for NULL are wrong as the values can be provided by the triggers

ext/interbase/ibase_query.c

index b9e8db87818f475974101cd70c65cc9121da3f6d..9eac22284bdadff7cd2cfd67a3bf9fdc4e902194 100644 (file)
@@ -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;