/**
  * Construct the iterator.
  * @param PgSQLResultSet $rs
  */
 public function __construct(PgSQLResultSet $rs)
 {
     $this->result = $rs->getResource();
     $this->fetchmode = $rs->getFetchmode();
     $this->row_count = $rs->getRecordCount();
     $this->rs = $rs;
     // This is to address reference count bug: http://creole.phpdb.org/trac/ticket/6
 }
Ejemplo n.º 2
0
 /**
  * Construct the iterator.
  * @param PgSQLResultSet $rs
  */
 public function __construct(PgSQLResultSet $rs)
 {
     $this->result = $rs->getResource();
     $this->fetchmode = $rs->getFetchmode();
     $this->row_count = $rs->getRecordCount();
 }