pg_set_error_verbosity
Determines the verbosity of messages returned by pg_last_error
and pg_result_error
&reftitle.description;
intpg_set_error_verbosity
PgSql\Connectionconnection
intverbosity
Determines the verbosity of messages returned by pg_last_error
and pg_result_error.
pg_set_error_verbosity sets the verbosity mode, returning the connection's previous
setting. In PGSQL_ERRORS_TERSE mode, returned messages include severity, primary text, and
position only; this will normally fit on a single line. The default mode (PGSQL_ERRORS_DEFAULT)
produces messages that include the above plus any detail, hint, or context
fields (these may span multiple lines). The PGSQL_ERRORS_VERBOSE mode includes all available
fields. Changing the verbosity does not affect the messages available from
already-existing result objects, only subsequently-created ones.
&reftitle.parameters;
connection
&pgsql.parameter.connection-with-unspecified-default;
verbosity
The required verbosity: PGSQL_ERRORS_TERSE,
PGSQL_ERRORS_DEFAULT
or PGSQL_ERRORS_VERBOSE.
&reftitle.returnvalues;
The previous verbosity level: PGSQL_ERRORS_TERSE,
PGSQL_ERRORS_DEFAULT
or PGSQL_ERRORS_VERBOSE.
&reftitle.changelog;
&Version;
&Description;
&pgsql.changelog.connection-object;
&reftitle.examples;
pg_set_error_verbosity example
]]>
&reftitle.seealso;
pg_last_error
pg_result_error