From 15f22a5796d1abaf7ff0556b3f1915114a8ed0e7 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 26 Jan 2004 13:59:42 +0000 Subject: [PATCH] fix oci_field_type_raw's proto oci_collection_element_get should return FALSE only if there is no such element and NULL, if it's null --- ext/oci8/oci8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 215d65970f..17554947e1 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -5449,7 +5449,7 @@ PHP_FUNCTION(oci_field_type) } /* }}} */ -/* {{{ proto mixed oci_field_type_raw(resource stmt, int col) +/* {{{ proto int oci_field_type_raw(resource stmt, int col) Tell the raw oracle data type of a column */ PHP_FUNCTION(oci_field_type_raw) { @@ -6505,7 +6505,7 @@ PHP_FUNCTION(oci_collection_element_get) /* Return null if the value is null */ if (*elemind == OCI_IND_NULL) { - RETURN_FALSE; + RETURN_NULL; } switch (coll->element_typecode) { -- 2.50.1