/**
  * Constructor
  * 
  * @param Zend_Db_Statement $stmt
  * @return void
  * @access public
  * @since 4/4/08
  */
 public function __construct(Zend_Db_Statement $stmt, $adapter)
 {
     $this->stmt = $stmt;
     $this->adapter = $adapter;
     // It seems that PDO only supports buffered queries on MySQL and it is
     // not recommended to use them even there. buffering therefore must be done
     // here rather than in the adapter layer.
     $this->stmt->setFetchMode(Zend_Db::FETCH_ASSOC);
     $this->rows = $this->stmt->fetchAll();
     $this->stmt->closeCursor();
 }