Commit b79c042f authored by Martin Langhoff's avatar Martin Langhoff Committed by Robert Lyon

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

Bug 1539346

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: I18aeb0d1635719bec5574005f2dd93e3db32b9e6
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 737e9d31
......@@ -6,5 +6,6 @@ Version: 5.20.5
- RecordSet_postgres7->MoveNext() - remove expensive is_array() (04ef8a3b9770f93326a2ece31e4089368117faca)
- Deleted many files we're not using, including tests, docs, other drivers, other error langs
......@@ -320,9 +320,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
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment