Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: make PSQLState enum consts for integrity constraint violati…
…ons (#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.
- Loading branch information
Showing
3 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters