]> granicus.if.org Git - php/commitdiff
Fixed one more improper row offset handling.
authorYasuo Ohgaki <yohgaki@php.net>
Sun, 9 Feb 2003 07:50:16 +0000 (07:50 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Sun, 9 Feb 2003 07:50:16 +0000 (07:50 +0000)
ext/pgsql/pgsql.c

index c4176596dfa569b0db0cbfaae49c9b51d0842ec1..f7fe878d8313a7e98a536b4cc1d0e4aec47db896 100644 (file)
@@ -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);
 }
 /* }}} */