summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-09-23 23:43:23 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-09-23 23:43:23 +0100
commit75a6f783c519beb2aae022cf9fff1dc5897e078d (patch)
treeff7844b526bb1ee36ef887bb0f5113f16ba19e2c /lib
parentb072a04c9cb3057820c46ba34c3f85dabfc3c489 (diff)
downloadpsycopg2-75a6f783c519beb2aae022cf9fff1dc5897e078d.tar.gz
Added PostgreSQL 9.0 error codes.
Diffstat (limited to 'lib')
-rw-r--r--lib/errorcodes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/errorcodes.py b/lib/errorcodes.py
index e305de5..c13150e 100644
--- a/lib/errorcodes.py
+++ b/lib/errorcodes.py
@@ -201,6 +201,7 @@ NOT_NULL_VIOLATION = '23502'
FOREIGN_KEY_VIOLATION = '23503'
UNIQUE_VIOLATION = '23505'
CHECK_VIOLATION = '23514'
+EXCLUSION_VIOLATION = '23P01'
# Class 24 - Invalid Cursor State
INVALID_CURSOR_STATE = '24000'
@@ -226,6 +227,7 @@ TRIGGERED_DATA_CHANGE_VIOLATION = '27000'
# Class 28 - Invalid Authorization Specification
INVALID_AUTHORIZATION_SPECIFICATION = '28000'
+INVALID_PASSWORD = '28P01'
# Class 2B - Dependent Privilege Descriptors Still Exist
DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST = '2B000'