Exemplo n.º 1
0
 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;
 }
Exemplo n.º 3
0
 /**
  * Devuelve el no error de Informix
  *
  * @return int
  */
 public function no_error()
 {
     if (!$this->id_connection) {
         return ifx_error();
     }
     return ifx_error();
 }
Exemplo n.º 4
0
 /**
  * Devuelve el no error de Informix
  *
  * @return int
  */
 public function no_error()
 {
     return ifx_error();
 }
Exemplo n.º 5
0
Arquivo: ifx.php Projeto: joeymetal/v1
 /**
  * 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();
 }