From: Thies C. Arntzen Date: Mon, 21 Oct 2002 11:00:40 +0000 (+0000) Subject: #19948 X-Git-Tag: php-4.3.0pre2~234 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31e4d623782810bad850bd00fc3b62a90f5a4794;p=php #19948 --- 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; }