From 2e95af0fd152c1145886643584ffd44bef4eea44 Mon Sep 17 00:00:00 2001 From: Christopher Kings-Lynne Date: Wed, 23 Mar 2005 03:11:05 +0000 Subject: [PATCH] - Document new pg_set_error_verbosity() function. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@182691 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pgsql/constants.xml | 35 ++++++- .../functions/pg-set-error-verbosity.xml | 97 +++++++++++++++++++ 2 files changed, 131 insertions(+), 1 deletion(-) create mode 100644 reference/pgsql/functions/pg-set-error-verbosity.xml diff --git a/reference/pgsql/constants.xml b/reference/pgsql/constants.xml index 16fafef557..21a12dced8 100644 --- a/reference/pgsql/constants.xml +++ b/reference/pgsql/constants.xml @@ -1,5 +1,5 @@ - +
&reftitle.constants; &extension.constants; @@ -390,6 +390,39 @@ + + + PGSQL_ERRORS_TERSE + (integer) + + + + + + + + + + PGSQL_ERRORS_DEFAULT + (integer) + + + + + + + + + + PGSQL_ERRORS_VERBOSE + (integer) + + + + + + +
diff --git a/reference/pgsql/functions/pg-set-error-verbosity.xml b/reference/pgsql/functions/pg-set-error-verbosity.xml new file mode 100644 index 0000000000..e54676e90b --- /dev/null +++ b/reference/pgsql/functions/pg-set-error-verbosity.xml @@ -0,0 +1,97 @@ + + + + + + pg_set_error_verbosity + + Set the error verbosity + + + + + &reftitle.description; + + intpg_set_error_verbosity + intverbosity + + + intpg_set_error_verbosity + resourceconnection + intverbosity + + + pg_set_error_verbosity determines the verbosity + of messages returned by pg_last_error and + pg_result_error. The verbosity + can be one of three constants: PGSQL_ERRORS_TERSE, + PGSQL_ERRORS_DEFAULT + or PGSQL_ERRORS_VERBOSE. + + pg_set_error_verbosity will return the + connection previous verbosity. + + + + This function requires PostgreSQL 7.4 or higher. Changing the + verbosity in this manner will only affect future results, existing + result objects will be unchanged. + + + + + + &reftitle.examples; + + + <function>pg_set_error_verbosity</function> example + + +]]> + + + + + + + &reftitle.seealso; + + + pg_last_error + pg_result_error + + + + + +