From 7f81a4a62f97e5f848c4f3ad51f95beaa92ef37a Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Sun, 9 Feb 2003 07:50:16 +0000 Subject: [PATCH] Fixed one more improper row offset handling. --- ext/pgsql/pgsql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index c4176596df..f7fe878d83 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -2975,7 +2975,7 @@ PHP_FUNCTION(pg_get_result) pg_result = (pgsql_result_handle *) emalloc(sizeof(pgsql_result_handle)); pg_result->conn = pgsql; pg_result->result = pgsql_result; - pg_result->row = -1; + pg_result->row = 0; ZEND_REGISTER_RESOURCE(return_value, pg_result, le_result); } /* }}} */ -- 2.50.1