<?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.2 $ --> <!-- splitted from ./en/functions/ifx.xml, last change in rev 1.2 --> <refentry id="function.ifx-error"> <refnamediv> <refname>ifx_error</refname> <refpurpose>Returns error code of last Informix call</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>ifx_error</methodname> <void/> </methodsynopsis> <para> The Informix error codes (SQLSTATE & SQLCODE) formatted as follows : </para> <para> x [SQLSTATE = aa bbb SQLCODE=cccc] </para> <para> where x = space : no error </para> <para> E : error </para> <para> N : no more data </para> <para> W : warning </para> <para> ? : undefined </para> <para> If the "x" character is anything other than space, SQLSTATE and SQLCODE describe the error in more detail. </para> <para> See the Informix manual for the description of SQLSTATE and SQLCODE </para> <para> Returns in a string one character describing the general results of a statement and both SQLSTATE and SQLCODE associated with the most recent SQL statement executed. The format of the string is "(char) [SQLSTATE=(two digits) (three digits) SQLCODE=(one digit)]". The first character can be '<literal> </literal>' (space) (success), '<literal>W</literal>' (the statement caused some warning), '<literal>E</literal>' (an error happened when executing the statement) or '<literal>N</literal>' (the statement didn't return any data). </para> <para> See also: <function>ifx_errormsg</function> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->