function ErrorNo() { $err = @ora_errorcode($this->_curs); if (!$err) { return @ora_errorcode($this->_connectionID); } }
function _query($sql, $inputarr = false) { // <G. Giunta 2003/03/03/> Reset error messages before executing $this->_errorMsg = false; $this->_errorCode = false; $curs = ora_open($this->_connectionID); if ($curs === false) { return false; } $this->_curs = $curs; if (!ora_parse($curs, $sql)) { return false; } if (ora_exec($curs)) { return $curs; } // <G. Giunta 2004/03/03> before we close the cursor, we have to store the error message // that we can obtain ONLY from the cursor (and not from the connection) $this->_errorCode = @ora_errorcode($curs); $this->_errorMsg = @ora_error($curs); // </G. Giunta 2004/03/03> @ora_close($curs); return false; }