]> granicus.if.org Git - php/commitdiff
Let DB handle NULL params, fixes bug #26777
authorArd Biesheuvel <abies@php.net>
Wed, 7 Jan 2004 09:43:55 +0000 (09:43 +0000)
committerArd Biesheuvel <abies@php.net>
Wed, 7 Jan 2004 09:43:55 +0000 (09:43 +0000)
ext/interbase/interbase.c

index 167d102238d0d17f0a127a4fa6901426e62e1ccc..7297947b482a2222c34e3830ceec26f90e396c54 100644 (file)
@@ -1578,12 +1578,6 @@ static int _php_ibase_bind(XSQLDA *sqlda, zval **b_vars, BIND_BUF *buf, ibase_qu
                var->sqlind = &buf[i].sqlind;
                
                if (Z_TYPE_P(b_var) == IS_NULL) {
-
-                       if ((var->sqltype & 1) != 1) {
-                               _php_ibase_module_error("Parameter %d must have a value" TSRMLS_CC, i+1);
-                               rv = FAILURE;
-                       }
-
                        buf[i].sqlind = -1;
                } else {
                        buf[i].sqlind = 0;