summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2018-10-14 23:07:11 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2018-10-14 23:07:11 +0100
commit61df7bdd8d8bc8f085771377b145fef42986feb5 (patch)
treeb8c8508ecf664d010891782d3ed8142cee9906cd
parent782fa39647a79bc0269917cd9f539c793c13774a (diff)
downloadpsycopg2-61df7bdd8d8bc8f085771377b145fef42986feb5.tar.gz
Errors module content updated to Postgres 11
-rw-r--r--lib/errors.py6
-rwxr-xr-xscripts/make_errors.py2
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/errors.py b/lib/errors.py
index 2e082b4..dbf829b 100644
--- a/lib/errors.py
+++ b/lib/errors.py
@@ -325,6 +325,12 @@ class DivisionByZero(DataError):
_by_sqlstate['22012'] = DivisionByZero
+class InvalidPrecedingOrFollowingSize(DataError):
+ pass
+
+_by_sqlstate['22013'] = InvalidPrecedingOrFollowingSize
+
+
class InvalidArgumentForNtileFunction(DataError):
pass
diff --git a/scripts/make_errors.py b/scripts/make_errors.py
index 855ca35..cdf299f 100755
--- a/scripts/make_errors.py
+++ b/scripts/make_errors.py
@@ -33,7 +33,7 @@ def main():
file_start = read_base_file(filename)
# If you add a version to the list fix the docs (in errors.rst)
classes, errors = fetch_errors(
- ['9.1', '9.2', '9.3', '9.4', '9.5', '9.6', '10'])
+ ['9.1', '9.2', '9.3', '9.4', '9.5', '9.6', '10', '11'])
f = open(filename, "w")
for line in file_start: