]> granicus.if.org Git - php/commitdiff
added support for CALL statement type (patch by Chris Jones)
authorAntony Dovgal <tony2001@php.net>
Thu, 21 Dec 2006 22:08:02 +0000 (22:08 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 21 Dec 2006 22:08:02 +0000 (22:08 +0000)
ext/oci8/oci8_interface.c

index 35ac09e2c727ddc3cc744d9279343be31ebf83b5..7cc5315c4e70c7ad8bf3553e9ef32795871b2330 100644 (file)
 #include "php_oci8.h"
 #include "php_oci8_int.h"
 
+#ifndef OCI_STMT_CALL
+#define OCI_STMT_CALL 10
+#endif
+
 /* {{{ proto bool oci_define_by_name(resource stmt, string name, mixed &var [, int type]) U
    Define a PHP variable to an Oracle column by name */
 /* if you want to define a LOB/CLOB etc make sure you allocate it via OCINewDescriptor BEFORE defining!!! */
@@ -1890,6 +1894,9 @@ PHP_FUNCTION(oci_statement_type)
                case OCI_STMT_DECLARE:
                        RETVAL_ASCII_STRING("DECLARE", ZSTR_DUPLICATE);
                        break;
+               case OCI_STMT_CALL:
+                       RETVAL_ASCII_STRING("CALL", ZSTR_DUPLICATE);
+                       break;
                default:
                        RETVAL_ASCII_STRING("UNKNOWN", ZSTR_DUPLICATE);
        }