]> granicus.if.org Git - php/commitdiff
MFH
authorYasuo Ohgaki <yohgaki@php.net>
Sun, 9 Feb 2003 07:50:31 +0000 (07:50 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Sun, 9 Feb 2003 07:50:31 +0000 (07:50 +0000)
ext/pgsql/pgsql.c

index 32b3f84de135ccb3bff4d80f598e206309ad4f16..4111bc531aa4c04bdf0fed3366ff73f22d13b4a3 100644 (file)
@@ -2979,7 +2979,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);
 }
 /* }}} */