aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ()))
{