mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
fix possible issue with negative values in oci_set_prefetch
(reported by Chris Jones)
This commit is contained in:
parent
d98a8aa589
commit
7563d4f573
@ -122,7 +122,7 @@ php_oci_statement *php_oci_statement_create (php_oci_connection *connection, cha
|
||||
|
||||
/* {{{ php_oci_statement_set_prefetch()
|
||||
Set prefetch buffer size for the statement (we're assuming that one row is ~1K sized) */
|
||||
int php_oci_statement_set_prefetch(php_oci_statement *statement, ub4 size TSRMLS_DC)
|
||||
int php_oci_statement_set_prefetch(php_oci_statement *statement, long size TSRMLS_DC)
|
||||
{
|
||||
ub4 prefetch = size * 1024;
|
||||
|
||||
|
@ -373,7 +373,7 @@ int php_oci_collection_append_string(php_oci_collection *, char *, int TSRMLS_DC
|
||||
/* statement related prototypes {{{ */
|
||||
|
||||
php_oci_statement * php_oci_statement_create (php_oci_connection *, char *, int TSRMLS_DC);
|
||||
int php_oci_statement_set_prefetch (php_oci_statement *, ub4 TSRMLS_DC);
|
||||
int php_oci_statement_set_prefetch (php_oci_statement *, long TSRMLS_DC);
|
||||
int php_oci_statement_fetch (php_oci_statement *, ub4 TSRMLS_DC);
|
||||
php_oci_out_column * php_oci_statement_get_column (php_oci_statement *, long, char*, int TSRMLS_DC);
|
||||
int php_oci_statement_execute (php_oci_statement *, ub4 TSRMLS_DC);
|
||||
|
Loading…
Reference in New Issue
Block a user