summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2003-02-09 07:50:16 +0000
committerYasuo Ohgaki <yohgaki@php.net>2003-02-09 07:50:16 +0000
commit7f81a4a62f97e5f848c4f3ad51f95beaa92ef37a (patch)
tree05e34dbad71e9aa0031385569c4c2a7c80c50f8a /ext/pgsql/pgsql.c
parentac16adae0a8eb34721124167196a26857801c58c (diff)
downloadphp-git-7f81a4a62f97e5f848c4f3ad51f95beaa92ef37a.tar.gz
Fixed one more improper row offset handling.
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r--ext/pgsql/pgsql.c2
1 files changed, 1 insertions, 1 deletions
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);
}
/* }}} */