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.