From: Mike Goodman <noreply@github.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: [pgjdbc/pgjdbc] cc31c1: refactor: make PSQLState enum consts for integrity...
Date: Fri, 07 Feb 2020 06:58:13 -0800
Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/a95b3e-cc31c1@github.com> (raw)
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: cc31c13f7810e171c54729a29f494d69b7f1550a
https://github.com/pgjdbc/pgjdbc/commit/cc31c13f7810e171c54729a29f494d69b7f1550a
Author: Mike Goodman <MSGoodman@users.noreply.github.com>
Date: 2020-02-07 (Fri, 07 Feb 2020)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/util/PSQLState.java
M pgjdbc/src/test/java/org/postgresql/test/core/LogServerMessagePropertyTest.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/ServerErrorTest.java
Log Message:
-----------
refactor: make PSQLState enum consts for integrity constraint violations (#1699)
* refactor: make PSQLState enum consts for integrity constraint violations
Previously the PSQLState enum did not include values for any of the
integrity constraint violation error codes mentioned in the PostgreSQL
docs (as seen under Class 25 here:
https://www.postgresql.org/docs/current/errcodes-appendix.html); this
required hardcoding or the creation of consts wherever they were needed
(as seen in LogServerMessagePropertyTest.java). This commit adds all of
them (except restrict_violation which doesn't seem to appear in the
wild) and creates a test checking for each of them.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: noreply@github.com
Subject: Re: [pgjdbc/pgjdbc] cc31c1: refactor: make PSQLState enum consts for integrity...
In-Reply-To: <pgjdbc/pgjdbc/push/refs/heads/master/a95b3e-cc31c1@github.com>
References: <pgjdbc/pgjdbc/push/refs/heads/master/a95b3e-cc31c1@github.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox