Example #1
0
 public function cancel()
 {
     set_error_handler(static::getErrorHandler());
     $isSuccess = oci_cancel($this->resource);
     restore_error_handler();
     return $isSuccess;
 }
Example #2
0
 /**
  * Free the result
  *
  * @return	void
  */
 public function free_result()
 {
     if (is_resource($this->result_id)) {
         oci_free_statement($this->result_id);
         $this->result_id = FALSE;
     }
     if (is_resource($this->stmt_id)) {
         oci_free_statement($this->stmt_id);
     }
     if (is_resource($this->curs_id)) {
         oci_cancel($this->curs_id);
         $this->curs_id = NULL;
     }
 }
Example #3
0
 /**
  * Free the result.
  *
  * @return void
  */
 public function free_result()
 {
     if (is_resource($this->result_id)) {
         oci_free_statement($this->result_id);
         $this->result_id = false;
     }
     if (is_resource($this->stmt_id)) {
         oci_free_statement($this->stmt_id);
     }
     if (is_resource($this->curs_id)) {
         oci_cancel($this->curs_id);
         $this->curs_id = null;
     }
 }
Example #4
0
 public function closeCursor()
 {
     if ($this->_result) {
         oci_cancel($this->_result);
     }
 }
Example #5
0
 /**
  * Closes the connection
  *
  * @return boolean
  */
 public function cancel()
 {
     oci_cancel($this->result);
 }
 public function Cancel($statement)
 {
     return oci_cancel($statement);
 }
Example #7
0
 /**
  * Finish an open cursor
  *
  */
 public function finish()
 {
     if ($this->_statementId) {
         oci_cancel($this->_statementId);
     }
 }