From: Ard Biesheuvel Date: Wed, 7 Jan 2004 09:44:21 +0000 (+0000) Subject: MFH: Let DB handle NULL params, fixes bug #26777 X-Git-Tag: php-4.3.5RC1~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a85cfe5b1498ca6a77c9fcb07c78f7ec4b34aaa8;p=php MFH: Let DB handle NULL params, fixes bug #26777 --- diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c index c2c4df728f..3e1ff95b3a 100644 --- a/ext/interbase/interbase.c +++ b/ext/interbase/interbase.c @@ -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;