summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPopa Adrian Marius <mariuz@php.net>2011-07-19 20:23:26 +0000
committerPopa Adrian Marius <mariuz@php.net>2011-07-19 20:23:26 +0000
commit90737c19e2b6928b41c7a00f964b593f7c1fcd8e (patch)
treeba3a04a56a46112d8d46c5eadb36dd030ca2d4a5
parentdacd564031eaa0795ddc868f2f532278f28fec0c (diff)
downloadphp-git-90737c19e2b6928b41c7a00f964b593f7c1fcd8e.tar.gz
Fix for bug http://bugs.php.net/54426
Checks for NULL are wrong as the values can be provided by the triggers
-rw-r--r--ext/interbase/ibase_query.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/ext/interbase/ibase_query.c b/ext/interbase/ibase_query.c
index b9e8db8781..9eac22284b 100644
--- a/ext/interbase/ibase_query.c
+++ b/ext/interbase/ibase_query.c
@@ -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;