fix possible issue with negative values in oci_set_prefetch

(reported by Chris Jones)
This commit is contained in:
Antony Dovgal 2006-11-10 20:13:36 +00:00
parent d98a8aa589
commit 7563d4f573
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);