Skip to content

Commit 240f750

Browse files
committed
Fix #77
1 parent a3b04ab commit 240f750

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ibase_query.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,7 @@ static int _php_ibase_bind(XSQLDA *sqlda, zval *b_vars, BIND_BUF *buf, /* {{{ */
714714
XSQLVAR *var = &sqlda->sqlvar[i];
715715

716716
var->sqlind = &buf[i].sqlind;
717+
var->sqldata = (void*)&buf[i].val;
717718

718719
/* check if a NULL should be inserted */
719720
switch (Z_TYPE_P(b_var)) {
@@ -747,7 +748,6 @@ static int _php_ibase_bind(XSQLDA *sqlda, zval *b_vars, BIND_BUF *buf, /* {{{ */
747748

748749
case IS_NULL:
749750
buf[i].sqlind = -1;
750-
sqlda->sqlvar->sqldata = NULL;
751751

752752
if (var->sqltype & SQL_ARRAY) ++array_cnt;
753753

@@ -758,8 +758,6 @@ static int _php_ibase_bind(XSQLDA *sqlda, zval *b_vars, BIND_BUF *buf, /* {{{ */
758758

759759
buf[i].sqlind = 0;
760760

761-
var->sqldata = (void*)&buf[i].val;
762-
763761
switch (var->sqltype & ~1) {
764762
struct tm t;
765763

0 commit comments

Comments
 (0)