From 5ad34a5a05e03d50e50d32d2f5dbfb6ada7b328e Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 1 Feb 2018 11:55:49 +0000 Subject: [PATCH] Document pg_last_notice(, option) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344147 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pgsql/constants.xml | 37 ++++++++++++++++++++ reference/pgsql/functions/pg-last-notice.xml | 18 ++++++++-- 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/reference/pgsql/constants.xml b/reference/pgsql/constants.xml index 1254c94938..4a827dbb55 100644 --- a/reference/pgsql/constants.xml +++ b/reference/pgsql/constants.xml @@ -508,6 +508,43 @@ + + + PGSQL_NOTICE_LAST + (integer) + + + + Used by pg_last_notice. + Available since PHP 7.1.0. + + + + + + PGSQL_NOTICE_ALL + (integer) + + + + Used by pg_last_notice. + Available since PHP 7.1.0. + + + + + + PGSQL_NOTICE_CLEAR + (integer) + + + + Used by pg_last_notice. + Available since PHP 7.1.0. + + + + PGSQL_STATUS_LONG diff --git a/reference/pgsql/functions/pg-last-notice.xml b/reference/pgsql/functions/pg-last-notice.xml index 1a11d5649e..4da9745e8f 100644 --- a/reference/pgsql/functions/pg-last-notice.xml +++ b/reference/pgsql/functions/pg-last-notice.xml @@ -12,7 +12,7 @@ &reftitle.description; - stringpg_last_notice + mixedpg_last_notice resourceconnection intoptionPGSQL_NOTICE_LAST @@ -51,6 +51,16 @@ + + option + + + One of PGSQL_NOTICE_LAST (to return last notice), + PGSQL_NOTICE_ALL (to return all notices), + or PGSQL_NOTICE_CLEAR (to clear notices). + + + @@ -59,7 +69,11 @@ &reftitle.returnvalues; A string containing the last notice on the - given connection, or &false; on error. + given connection with + PGSQL_NOTICE_LAST, + an array with PGSQL_NOTICE_ALL, + a boolean with PGSQL_NOTICE_CLEAR, + or &false; on error.