Commit 04ef8a3b authored by Martin Langhoff's avatar Martin Langhoff Committed by Francois Marier
Browse files

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

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

(cherry picked from commit 4652e561

Signed-off-by: default avatarFrancois Marier <>
parent e7029e5f
......@@ -228,8 +228,8 @@ 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