Re: SQL conformity regarding SQLSTATE - Mailing list pgsql-sql

From Jürgen Purtz
Subject Re: SQL conformity regarding SQLSTATE
Date
Msg-id 6f4d8b10-0d24-86f5-3e14-b3d362181381@purtz.de
Whole thread Raw
In response to Re: SQL conformity regarding SQLSTATE  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: SQL conformity regarding SQLSTATE
List pgsql-sql
> I poked around in SQL:2011 and I concur that the first four of those
> no longer appear in the standard.  However, unless grep is failing me,
> we aren't generating those errcodes anywhere either:
>
> ERRCODE_WARNING_IMPLICIT_ZERO_BIT_PADDING
> ERRCODE_SQL_STATEMENT_NOT_YET_COMPLETE
> ERRCODE_INVALID_TRANSACTION_INITIATION
> ERRCODE_E_R_I_E_INVALID_SQLSTATE_RETURNED
>
> So we could just remove those codes and be no worse off.

+1.

I rearranged 'errcodes.txt' according to SQLSTATE without eliminating 
any row. Please read section 42 and its comments carefully. Maybe you 
want to rearrange the 4 rows which have no fourth column. The attachment 
contains the changes as raw file and as patch.

Generating the documentation works as expected. I haven't done any other 
test.

Kind regards
Jürgen Purtz



Attachment

pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: SQL conformity regarding SQLSTATE
Next
From: Tom Lane
Date:
Subject: Re: SQL conformity regarding SQLSTATE