Skip to content

Commit 7f81a4a

Browse files
author
Yasuo Ohgaki
committed
Fixed one more improper row offset handling.
1 parent ac16ada commit 7f81a4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pgsql/pgsql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2975,7 +2975,7 @@ PHP_FUNCTION(pg_get_result)
29752975
pg_result = (pgsql_result_handle *) emalloc(sizeof(pgsql_result_handle));
29762976
pg_result->conn = pgsql;
29772977
pg_result->result = pgsql_result;
2978-
pg_result->row = -1;
2978+
pg_result->row = 0;
29792979
ZEND_REGISTER_RESOURCE(return_value, pg_result, le_result);
29802980
}
29812981
/* }}} */

0 commit comments

Comments
 (0)