postgresql-jdbc.git / summary / log / commit / refs
commit aa20debc092d00df32bdca22425ed4291e1e4181
Author: Tom Aizenberg <tom.aizenberg@gmail.com>
Commit: GitHub <noreply@github.com>
Date: Thu Apr 22 00:12:18 2021 +0000
Add SERIALIZATION_FAILURE to org.postgresql.util.PSQLState #2128 (#2129)
Postgres might issue a 40001 state, as described in the documentation:
- https://www.postgresql.org/docs/current/transaction-iso.html
- https://www.postgresql.org/docs/13/errcodes-appendix.html
There is currently no representation of this 40001 state in
org.postgresql.util.PSQLState, so we add it here.
Co-authored-by: Tom Aizenberg <tom.aizenberg@imc.com>
pgjdbc/src/main/java/org/postgresql/util/PSQLState.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/pgjdbc/src/main/java/org/postgresql/util/PSQLState.java b/pgjdbc/src/main/java/org/postgresql/util/PSQLState.java
index a6f5b8ea..93cb43ca 100644
--- a/pgjdbc/src/main/java/org/postgresql/util/PSQLState.java
+++ b/pgjdbc/src/main/java/org/postgresql/util/PSQLState.java
@@ -83,6 +83,7 @@ public enum PSQLState {
INVALID_SAVEPOINT_SPECIFICATION("3B000"),
+ SERIALIZATION_FAILURE("40001"),
DEADLOCK_DETECTED("40P01"),
SYNTAX_ERROR("42601"),
UNDEFINED_COLUMN("42703"),
[parent: f61fbfe7b72c]