From 240c7e47806b08c91ffb80b41a37328bcde10b53 Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Thu, 11 Apr 2002 01:24:17 +0000 Subject: [PATCH] Fixed pg_last_error description. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@77625 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/pgsql.xml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/functions/pgsql.xml b/functions/pgsql.xml index f986803295..55714f7299 100644 --- a/functions/pgsql.xml +++ b/functions/pgsql.xml @@ -1,5 +1,5 @@ - + PostgreSQL functions PostgreSQL @@ -707,11 +707,18 @@ $dbconn4 = pg_connect ($conn_string); resourceconnection - pg_last_error returns the last error - message for given connection. Error messages - may be overwritten by calls to other PostgreSQL functions, so make - sure you call pg_last_error before any other - PostgreSQL functions. + pg_last_error returns the last error message + for given connection. + + + 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. + + + Use pg_result_error, + pg_result_status and + pg_connection_status for better error handling. @@ -719,7 +726,7 @@ $dbconn4 = pg_connect ($conn_string); - See also pg_result_error_message. + See also pg_result_error.