diff options
| author | Antony Dovgal <tony2001@php.net> | 2006-11-10 20:13:36 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2006-11-10 20:13:36 +0000 |
| commit | 7563d4f5736e8aa6959dee1a6f50feb803dc5230 (patch) | |
| tree | d21ab515896a3eab8cf654f61e6e1c4dfe4ad1c0 | |
| parent | d98a8aa5898117f1ada3deb99b91b837f8707a38 (diff) | |
| download | php-git-7563d4f5736e8aa6959dee1a6f50feb803dc5230.tar.gz | |
fix possible issue with negative values in oci_set_prefetch
(reported by Chris Jones)
| -rw-r--r-- | ext/oci8/oci8_statement.c | 2 | ||||
| -rw-r--r-- | ext/oci8/php_oci8_int.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c index 8c117ea304..7cf783dda6 100644 --- a/ext/oci8/oci8_statement.c +++ b/ext/oci8/oci8_statement.c @@ -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; diff --git a/ext/oci8/php_oci8_int.h b/ext/oci8/php_oci8_int.h index 22d7f8c37a..c87e20d38b 100644 --- a/ext/oci8/php_oci8_int.h +++ b/ext/oci8/php_oci8_int.h @@ -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); |
