Skip to content
Permalink
Browse files

Add DEADLOCK_DETECTED Enumeration (#1380)

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 a7f63bff0bbd552666d269251436dbb8e6b25d6a
Showing with 1 addition and 0 deletions.
  1. +1 −0 pgjdbc/src/main/java/org/postgresql/util/PSQLState.java
@@ -73,6 +73,7 @@

INVALID_SAVEPOINT_SPECIFICATION("3B000"),

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

0 comments on commit a7f63bf

Please sign in to comment.
You can’t perform that action at this time.