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; }
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; }
function ErrorNo() { $arr = @OCIerror($this->_stmt); if ($arr === false) { $arr = @OCIerror($this->_connectionID); if ($arr === false) { return ''; } } return $arr['code']; }