diff options
author | Christopher Jones <sixd@php.net> | 2013-07-26 13:34:45 -0700 |
---|---|---|
committer | Christopher Jones <sixd@php.net> | 2013-07-26 13:34:45 -0700 |
commit | 85b66e9e2184eda9f2882684b5e8d7cfe3b348ce (patch) | |
tree | 43fdffd6257420e2b567be6f7933ada17406f6b9 /ext/oci8/php_oci8_int.h | |
parent | fc410f6ecec9b4b096cf44ea1f86354e258da67c (diff) | |
download | php-git-85b66e9e2184eda9f2882684b5e8d7cfe3b348ce.tar.gz |
OCI8 extension: Allow Implicit Result Set statement resources to inherit the parent's current prefetch count
Diffstat (limited to 'ext/oci8/php_oci8_int.h')
-rw-r--r-- | ext/oci8/php_oci8_int.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/oci8/php_oci8_int.h b/ext/oci8/php_oci8_int.h index 98c236893e..d1aa1ae70c 100644 --- a/ext/oci8/php_oci8_int.h +++ b/ext/oci8/php_oci8_int.h @@ -210,7 +210,7 @@ typedef struct { typedef struct { int id; int parent_stmtid; /* parent statement id */ - struct php_oci_statement *impres_child_stmt; /* child of current Implicit Result Set statement handle */ + struct php_oci_statement *impres_child_stmt;/* child of current Implicit Result Set statement handle */ ub4 impres_count; /* count of remaining Implicit Result children on parent statement handle */ php_oci_connection *connection; /* parent connection handle */ sword errcode; /* last errcode*/ @@ -227,6 +227,7 @@ typedef struct { unsigned has_data:1; /* statement has more data flag */ unsigned has_descr:1; /* statement has at least one descriptor or cursor column */ ub2 stmttype; /* statement type */ + ub4 prefetch_count; /* current prefetch count */ } php_oci_statement; /* }}} */ @@ -496,7 +497,7 @@ int php_oci_collection_append_string(php_oci_collection *collection, char *eleme php_oci_statement *php_oci_statement_create(php_oci_connection *connection, char *query, int query_len TSRMLS_DC); php_oci_statement *php_oci_get_implicit_resultset(php_oci_statement *statement TSRMLS_DC); -int php_oci_statement_set_prefetch(php_oci_statement *statement, long size TSRMLS_DC); +int php_oci_statement_set_prefetch(php_oci_statement *statement, ub4 prefetch TSRMLS_DC); int php_oci_statement_fetch(php_oci_statement *statement, ub4 nrows TSRMLS_DC); php_oci_out_column *php_oci_statement_get_column(php_oci_statement *statement, long column_index, char *column_name, int column_name_len TSRMLS_DC); int php_oci_statement_execute(php_oci_statement *statement, ub4 mode TSRMLS_DC); |