Commit 4652e561 authored by Martin Langhoff's avatar Martin Langhoff Committed by Nigel McNie
Browse files

AdoDB Performance: 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')
parent 943e2afa
......@@ -185,8 +185,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