diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-27 17:13:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-27 17:13:17 +0200 |
commit | c131dd7e0ac33316ba780d7ad47da2c301dcd45a (patch) | |
tree | bc5cba9b87766f7c4742e509c65e01cfe59eef68 | |
parent | cb36059b338552027a511fcf16a62257304e2a02 (diff) |
Translate serialization failure (SS 40001) to odb::deadlock
-rw-r--r-- | odb/pgsql/error.cxx | 2 |
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 ())) { |