Commit c0574d39 authored by Martin Langhoff's avatar Martin Langhoff Committed by Gerrit Code Review
Browse files

adodb: RecordSet_postgres7->MoveNext() - remove expensive is_array()

Bug 1384473

And implicit count() of the array keys/columns. This saves a good 5%
of the exec time of get_records('config')

(cherry picked from commit 4652e561


Change-Id: I1b1addb0ade04eabc4d923d242261ed09fae4cea
Signed-off-by: default avatarFrancois Marier <>
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 3bfb4772
......@@ -282,9 +282,9 @@ class ADORecordSet_postgres7 extends ADORecordSet_postgres64{
if ($this->_numOfRows < 0 || $this->_numOfRows > $this->_currentRow) {
$this->fields = @pg_fetch_array($this->_queryID,$this->_currentRow,$this->fetchMode);
if (is_array($this->fields)) {
if ($this->fields && isset($this->_blobArr)) $this->_fixblobs();
if ($this->fields!==FALSE) {
if (isset($this->_blobArr)) $this->_fixblobs();
return true;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment