mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed pg_last_error description.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@77625 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c1f2e71a8f
commit
240c7e4780
1 changed files with 14 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.86 $ -->
|
||||
<!-- $Revision: 1.87 $ -->
|
||||
<reference id="ref.pgsql">
|
||||
<title>PostgreSQL functions</title>
|
||||
<titleabbrev>PostgreSQL</titleabbrev>
|
||||
|
@ -707,11 +707,18 @@ $dbconn4 = pg_connect ($conn_string);
|
|||
<methodparam><type>resource</type><parameter>connection</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<function>pg_last_error</function> returns the last error
|
||||
message for given <parameter>connection</parameter>. Error messages
|
||||
may be overwritten by calls to other PostgreSQL functions, so make
|
||||
sure you call <function>pg_last_error</function> before any other
|
||||
PostgreSQL functions.
|
||||
<function>pg_last_error</function> returns the last error message
|
||||
for given <parameter>connection</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
Error messages may be overwritten by internal PostgreSQL(libpq)
|
||||
function calls. It may not return appropriate error message, if
|
||||
multiple errors are occured inside a PostgreSQL module function.
|
||||
</para>
|
||||
<para>
|
||||
Use <function>pg_result_error</function>,
|
||||
<function>pg_result_status</function> and
|
||||
<function>pg_connection_status</function> for better error handling.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
|
@ -719,7 +726,7 @@ $dbconn4 = pg_connect ($conn_string);
|
|||
</para>
|
||||
</note>
|
||||
<para>
|
||||
See also <function>pg_result_error_message</function>.
|
||||
See also <function>pg_result_error</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
Loading…
Reference in a new issue