Skip to content

Commit f8b96c2

Browse files
committed
doc: Replace reference to ERRCODE_RAISE_EXCEPTION by "raise_exception"
This part of the documentation refers to exceptions as handled by PL/pgSQL, and using the internal error code is confusing. Per thinko in 66bde49. Reported-by: Euler Taveira, Bruce Momjian Discussion: https://postgr.es/m/ZUEUnLevXyW7DlCs@momjian.us Backpatch-through: 11
1 parent 468377f commit f8b96c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/plpgsql.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3753,7 +3753,7 @@ RAISE unique_violation USING MESSAGE = 'Duplicate user ID: ' || user_id;
37533753
<para>
37543754
If no condition name nor SQLSTATE is specified in a
37553755
<command>RAISE EXCEPTION</command> command, the default is to use
3756-
<literal>ERRCODE_RAISE_EXCEPTION</literal> (<literal>P0001</literal>).
3756+
<literal>raise_exception</literal> (<literal>P0001</literal>).
37573757
If no message text is specified, the default is to use the condition
37583758
name or SQLSTATE as message text.
37593759
</para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy