Пример #1
0
 /**
  * Очищение результатов
  */
 protected function freeResult()
 {
     if ($this->query_result !== null) {
         $this->query_result->free_result();
         $this->query_result = null;
     }
     $this->result = null;
 }
Пример #2
0
 /**
  * Free memory associated with the resultset
  *
  * @return void
  */
 public function flush()
 {
     if ($this->result instanceof mysqli_stmt) {
         $this->result->free_result();
     }
     $this->result = null;
     $this->col_info = null;
     // Sanity check before using the handle
     if (empty($this->dbh) || !$this->dbh instanceof mysqli) {
         return;
     }
     // Clear out any results from a multi-query
     while (mysqli_more_results($this->dbh)) {
         mysqli_next_result($this->dbh);
     }
 }
Пример #3
0
 function free()
 {
     $this->result->free_result();
 }
Пример #4
0
 /**
  * @param mysqli_result $query_id
  * @return bool
  */
 public function free_result($query_id)
 {
     if ($query_id) {
         $query_id->free_result();
     }
 }
Пример #5
0
 /**
  * @return bool
  */
 public function close()
 {
     return $this->result->free_result();
 }
Пример #6
0
 /**
  * @param mysqli_result $result
  * @return mixed
  */
 public function free($result)
 {
     return $result->free_result();
 }
Пример #7
0
 /**
  * @param mysqli_result $res
  * @return bool
  */
 protected function mysqlFreeResult($res)
 {
     Assert::true($res instanceof mysqli_result, __METHOD__);
     $res->free_result();
     return true;
 }
Пример #8
0
 /**
  * Frees the memory from the result
  * Call it after you're done with a result set
  *
  * @return static
  */
 public function freeResult()
 {
     $this->result->free_result();
     return $this;
 }