From: Ard Biesheuvel Date: Wed, 7 Jan 2004 09:43:55 +0000 (+0000) Subject: Let DB handle NULL params, fixes bug #26777 X-Git-Tag: php_ibase_before_split~367 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee8f019b68b052eca8f32bf8573490f458f61160;p=php Let DB handle NULL params, fixes bug #26777 --- diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c index 167d102238..7297947b48 100644 --- a/ext/interbase/interbase.c +++ b/ext/interbase/interbase.c @@ -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;