SQLSTATEs for warnings - Mailing list pgsql-hackers

From Peter Eisentraut
Subject SQLSTATEs for warnings
Date
Msg-id Pine.LNX.4.56.0307271713060.1197@krusty.credativ.de
Whole thread Raw
Responses Re: SQLSTATEs for warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
The SQL standard states

An implementation-defined completion condition shall be indicated by
returning an implementation-defined subclass in conjunction with one of
the classes successful completion, warning, or no data.

In other words, an info, notice, or warning must have a class 00, 01, 02.
However, I noticed several warnings that use codes that are intended for
errors, for example in portalcmds.c and xact.c.

-- 
Peter Eisentraut   peter_e@gmx.net


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Some macros for error field codes
Next
From: Peter Eisentraut
Date:
Subject: Passing server_encoding to the client is not future-proof