Example #1
0
 function ErrorMsg()
 {
     $arr = @OCIerror($this->_stmt);
     if ($arr === false) {
         $arr = @OCIerror($this->_connectionID);
         if ($arr === false) {
             $arr = @OCIError();
         }
         if ($arr === false) {
             return '';
         }
     }
     $this->_errorMsg = $arr['message'];
     return $this->_errorMsg;
 }
Example #2
0
 function ErrorMsg()
 {
     if ($this->_errorMsg !== false) {
         return $this->_errorMsg;
     }
     if (is_resource($this->_stmt)) {
         $arr = @OCIerror($this->_stmt);
     }
     if (empty($arr)) {
         $arr = @OCIerror($this->_connectionID);
         if ($arr === false) {
             $arr = @OCIError();
         }
         if ($arr === false) {
             return '';
         }
     }
     $this->_errorMsg = $arr['message'];
     $this->_errorCode = $arr['code'];
     return $this->_errorMsg;
 }
Example #3
0
 function ErrorNo()
 {
     $arr = @OCIerror($this->_stmt);
     if ($arr === false) {
         $arr = @OCIerror($this->_connectionID);
         if ($arr === false) {
             return '';
         }
     }
     return $arr['code'];
 }