Home > PHP > Function > PostgreSQL > pg_set_error_verbosity()

pg_set_error_verbosity()

pg_set_error_verbosity - Determines the verbosity of messages returned by

pg_last_error()
and

pg_result_error()
.

Syntax

int pg_set_error_verbosity (resource $connection, int $verbosity)

Arguments

  • connection - PostgreSQL database connection resource. When connection is not present, the default connection is used. The default connection is the last connection made by pg_connect() or pg_pconnect().
  • verbosity - The required verbosity: PGSQL_ERRORS_TERSE, PGSQL_ERRORS_DEFAULT or PGSQL_ERRORS_VERBOSE.

Description

Determines the verbosity of messages returned by pg_last_error() and pg_result_error().

Version

PHP 5.1.0

Return value

The previous verbosity level: PGSQL_ERRORS_TERSE, PGSQL_ERRORS_DEFAULT or PGSQL_ERRORS_VERBOSE.