/**
 +----------------------------------------------------------
 * 关闭数据库
 +----------------------------------------------------------
 * @access public 
 +----------------------------------------------------------
 * @throws ThinkExecption
 +----------------------------------------------------------
 */
 public function close()
 {
     if (!empty($this->queryID)) {
         $this->free();
     }
     if (!OCI_close($this->_linkID)) {
         throw_exception($this->error());
     }
     $this->_linkID = 0;
 }
Example #2
0
 function close()
 {
     OCI_close($this->conn);
 }