summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/oci8/oci8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c
index 6585656d60..84e2a89960 100644
--- a/ext/oci8/oci8.c
+++ b/ext/oci8/oci8.c
@@ -1823,6 +1823,8 @@ oci_fetch(oci_statement *statement, ub4 nrows, char *func TSRMLS_DC)
}
if (statement->error == OCI_SUCCESS_WITH_INFO || statement->error == OCI_SUCCESS) {
+ statement->has_data = 1;
+
/* do the stuff needed for OCIDefineByName */
for (i = 0; i < statement->ncolumns; i++) {
column = oci_get_col(statement, i + 1, 0);
@@ -1838,8 +1840,6 @@ oci_fetch(oci_statement *statement, ub4 nrows, char *func TSRMLS_DC)
_oci_make_zval(column->define->zval,statement,column,"OCIFetch",0 TSRMLS_CC);
}
- statement->has_data = 1;
-
return 1;
}