]> granicus.if.org Git - php/commitdiff
fix oci_field_type_raw's proto
authorAntony Dovgal <tony2001@php.net>
Mon, 26 Jan 2004 13:59:42 +0000 (13:59 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 26 Jan 2004 13:59:42 +0000 (13:59 +0000)
oci_collection_element_get should return FALSE only if there is no such element and NULL, if it's null

ext/oci8/oci8.c

index 215d65970fc59a8b7f42400b3d6e1ee377ee73ed..17554947e112cc7490c990b1392fc405b1e49e62 100644 (file)
@@ -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) {