From 72ca91981fa0c41d4f390e0b19ecdf1cdf2ef5be Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Thu, 12 Jan 2017 16:19:27 +0000 Subject: [PATCH] FIX: PostgreSQLQuery::seek() failed to return a row --- code/PostgreSQLQuery.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/PostgreSQLQuery.php b/code/PostgreSQLQuery.php index a6f7061..67eb9be 100644 --- a/code/PostgreSQLQuery.php +++ b/code/PostgreSQLQuery.php @@ -36,7 +36,8 @@ class PostgreSQLQuery extends Query public function seek($row) { - return pg_result_seek($this->handle, $row); + pg_result_seek($this->handle, $row); + return pg_fetch_row($this->handle); } public function numRecords()