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

index c2c4df728f938f0c09751dd5dc2aac050a9434d8..3e1ff95b3ace00ddb4552a1590d01e796b8fcc3b 100644 (file)
@@ -1195,12 +1195,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;