function SetIFXError($scope, $message) { $error = ifx_error(); $position = strpos($error, "SQLCODE="); if (GetType($position) == "integer") { $position += strlen("SQLCODE="); if (GetType($code_end = strpos($error, " ]", $position)) == "integer" || GetType($code_end = strpos($error, "]", $position)) == "integer") { $code = substr($error, $position, $code_end - $position); } else { $code = substr($error, $position); } } else { $code = ""; } return $this->SetError($scope, $message . ": " . $code . " " . ifx_errormsg()); }
function ErrorNo() { preg_match("/.*SQLCODE=([^\\]]*)/", ifx_error(), $parse); if (is_array($parse) && isset($parse[1])) { return (int) $parse[1]; } return 0; }
/** * Devuelve el no error de Informix * * @return int */ public function no_error() { if (!$this->id_connection) { return ifx_error(); } return ifx_error(); }
/** * Devuelve el no error de Informix * * @return int */ public function no_error() { return ifx_error(); }
/** * Get the native error message of the last error (if any) that * occured on the current connection. * * @return int native Informix error code */ function errorNative() { return ifx_error() . ' ' . ifx_errormsg(); }
function ErrorNo() { return ifx_error(); }