cvs: php-src /ext/interbase interbase.c
| From: | Ard Biesheuvel | Date: | Wed, 07 Jan 2004 09:43:56 +0000 |
| Subject: | cvs: php-src /ext/interbase interbase.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-25543@lists.php.net to get a copy of this message | ||
abies Wed Jan 7 04:43:56 2004 EDT
Modified files:
/php-src/ext/interbase interbase.c
Log:
Let DB handle NULL params, fixes bug #26777
Index: php-src/ext/interbase/interbase.c
diff -u php-src/ext/interbase/interbase.c:1.189 php-src/ext/interbase/interbase.c:1.190
--- php-src/ext/interbase/interbase.c:1.189 Fri Sep 26 06:06:22 2003
+++ php-src/ext/interbase/interbase.c Wed Jan 7 04:43:55 2004
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: interbase.c,v 1.189 2003/09/26 10:06:22 abies Exp $ */
+/* $Id: interbase.c,v 1.190 2004/01/07 09:43:55 abies Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -26,7 +26,7 @@
#include "php.h"
-#define FILE_REVISION "$Revision: 1.189 $"
+#define FILE_REVISION "$Revision: 1.190 $"
#if HAVE_IBASE
@@ -1578,12 +1578,6 @@
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;