Re: error codes

From: Fernando Nasser <fnasser(at)redhat(dot)com>
To: Zeugswetter Andreas SB SD <ZeugswetterA(at)spardat(dot)at>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: error codes
Date: 2002-11-26 23:57:22
Message-ID: 3DE40A62.3000402@redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Insisting on Andreas suggestion, why can't we just prefix all error message
strings with the SQLState code? So all error messages would have the format

CCSSS - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Where CCSSS is the standard SQLState code and the message text is a more
specific description.

Note that the standard allows for implementation-defined codes, so we can have
our own CC classes and all the SSS subclasses that we need.

--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser(at)redhat(dot)com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ian Barwick 2002-11-27 00:19:05 Boolean casting in 7.3 -> changed?
Previous Message Bruce Momjian 2002-11-26 23:20:10 Request from eWeek for 7.3 comments