aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-27 17:13:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-27 17:13:17 +0200
commitc131dd7e0ac33316ba780d7ad47da2c301dcd45a (patch)
treebc5cba9b87766f7c4742e509c65e01cfe59eef68
parentcb36059b338552027a511fcf16a62257304e2a02 (diff)
Translate serialization failure (SS 40001) to odb::deadlock
-rw-r--r--odb/pgsql/error.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/pgsql/error.cxx b/odb/pgsql/error.cxx
index a560cc1..676fb76 100644
--- a/odb/pgsql/error.cxx
+++ b/odb/pgsql/error.cxx
@@ -59,7 +59,7 @@ namespace odb
// Deadlock detected.
//
- if (ss == "40P01")
+ if (ss == "40001" || ss == "40P01")
throw deadlock ();
else if (CONNECTION_BAD == PQstatus (c.handle ()))
{