Skip to content

Commit

Permalink
Add DEADLOCK_DETECTED Enumeration (#1380)
Browse files Browse the repository at this point in the history
This commit includes an additional value to represent the PostgreSQL error code for the condition "deadlock_detected".

- Include enum value for DEADLOCK_DETECTED PSQLState
- Set value to "40P01" per documentation located at: https://www.postgresql.org/docs/current/errcodes-appendix.html
  • Loading branch information
deanmarc25 authored and davecramer committed Jan 7, 2019
1 parent 72dc692 commit a7f63bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pgjdbc/src/main/java/org/postgresql/util/PSQLState.java
Expand Up @@ -73,6 +73,7 @@ public enum PSQLState {

INVALID_SAVEPOINT_SPECIFICATION("3B000"),

DEADLOCK_DETECTED("40P01"),
SYNTAX_ERROR("42601"),
UNDEFINED_COLUMN("42703"),
UNDEFINED_OBJECT("42704"),
Expand Down

0 comments on commit a7f63bf

Please sign in to comment.