/**
  * Unregister recordset from the global list of open recordsets.
  */
 private function unregister()
 {
     if ($this->db) {
         $this->db->recordset_closed($this);
         $this->db = null;
     }
 }