Пример #1
0
 /**
  *  Destructor, clear the ResultSet and  other related attributes.
  *
  * @param ResultSet $result
  * @access public
  */
 function free($result = 0)
 {
     parent::free();
     if ($result > 0) {
         mysql_free_result($result);
     } elseif (is_resource($this->result)) {
         mysql_free_result($this->result);
     }
     $this->sql_query = "";
     $this->sql_order = "";
     $this->pos = 0;
     $this->max_rows = 0;
     $this->num_rows = 0;
 }
Пример #2
0
 /**
  *  Destructor, clear the ResultSet and  other related attributes
  *
  * @param ResultSet $result
  * @access public
  */
 function free($result = 0)
 {
     parent::free();
     if ($result > 0) {
         pg_freeresult($result);
     } elseif ($this->id > 0) {
         pg_freeresult($this->id);
     }
     $this->sql_query = "";
     $this->sql_order = "";
     $this->pos = 0;
     $this->max_rows = 0;
     $this->num_rows = 0;
 }