summaryrefslogtreecommitdiff
path: root/ext/odbc
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-03-24 09:44:16 (GMT)
committerPierre Joye <pajoye@php.net>2009-03-24 09:44:16 (GMT)
commit043ae0e0ee5cbf01c1dd87d71289fc2f096bfb3a (patch)
treea9fd0fc40fc387cb9cdf82b0d15ca54e67a0c74e /ext/odbc
parent868d7d81449daab792e6959cf1c3a5462ed62886 (diff)
downloadphp-043ae0e0ee5cbf01c1dd87d71289fc2f096bfb3a.tar.gz
- fix logic after my build fix, thx to Hannes for the head up!
Diffstat (limited to 'ext/odbc')
-rw-r--r--ext/odbc/php_odbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index facd218..8968850 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -1631,7 +1631,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
SQLUSMALLINT RowStatus[1];
SQLLEN rownum;
zval *pv_res, *tmp;
- long pv_row = 1;
+ long pv_row = -1;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &pv_res, &pv_row) == FAILURE) {
return;