Re: Cleaning up ERRCODE usage in our XML code

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Cleaning up ERRCODE usage in our XML code
Date: 2025-04-09 14:03:17
Message-ID: 180690.1744207397@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter(at)eisentraut(dot)org> writes:
> On 14.09.24 21:14, Tom Lane wrote:
>> +Section: Class 10 - XQuery Error
>> +
>> +# recent SQL versions define quite a few codes in this class, but for now
>> +# we are only using this generic one
>> +10608 E ERRCODE_INVALID_ARGUMENT_FOR_XQUERY invalid_argument_for_xquery

> Could you share what SQL standard document version you got this from? I
> don't see this particular code in any version I have.

I think I stole it from DB2:

10608 An error was encountered in the argument of an XQuery function or operator.

https://www.ibm.com/docs/en/db2-for-zos/12.0.0?topic=codes-sqlstate-values-common-error#db2z_sqlstatevalues__classcode10

If you feel motivated to replace that with some finer-grained codes,
it's OK by me.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2025-04-09 14:18:38 Re: Possible api miuse bms_next_member
Previous Message Ranier Vilela 2025-04-09 13:37:16 Re: Possible api miuse bms_next_member