pg_errormessage() returns a string containing the last error message for given connection. It returns FALSE on failure.
pg_errormessage() returns the last error message for given connection and error message may be overwritten if other libpq functions are called on the connection. PostgreSQL functions calls libpq functions internally. Therefore, details about the error may not be retrieved using the pg_errormessage() function. pg_result_error_message() will be added from 4.2.0 to get last error for the result resource.
Poprzedni | Spis treści | Następny |
pg_end_copy | Początek rozdziału | pg_exec |