diff options
author | Antony Dovgal <tony2001@php.net> | 2006-01-31 18:38:52 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-01-31 18:38:52 +0000 |
commit | 3a800fe146fd03f1029c2936e2d5a32f816f3bbd (patch) | |
tree | 4face84e6376befe5375eea6a189131f3d46fed8 /ext/oci8/oci8_statement.c | |
parent | eb91dfc69e28cc9fcaff0f5179269a69349197e6 (diff) | |
download | php-git-3a800fe146fd03f1029c2936e2d5a32f816f3bbd.tar.gz |
MFH: fix #36235 (ocicolumnname delivers empty results before a succesfull ocifetch)
Diffstat (limited to 'ext/oci8/oci8_statement.c')
-rw-r--r-- | ext/oci8/oci8_statement.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c index d2d3aab744..dcb3130b7e 100644 --- a/ext/oci8/oci8_statement.c +++ b/ext/oci8/oci8_statement.c @@ -1004,7 +1004,7 @@ sb4 php_oci_bind_out_callback( /* {{{ php_oci_statement_get_column_helper() Helper function to get column by name and index */ -php_oci_out_column *php_oci_statement_get_column_helper(INTERNAL_FUNCTION_PARAMETERS) +php_oci_out_column *php_oci_statement_get_column_helper(INTERNAL_FUNCTION_PARAMETERS, int need_data) { zval *z_statement, *column_index; php_oci_statement *statement; @@ -1020,7 +1020,7 @@ php_oci_out_column *php_oci_statement_get_column_helper(INTERNAL_FUNCTION_PARAME return NULL; } - if (!statement->has_data) { + if (need_data && !statement->has_data) { return NULL; } |