Errors module content updated to Postgres 11

This commit is contained in:
Daniele Varrazzo 2018-10-14 23:07:11 +01:00
parent 782fa39647
commit 61df7bdd8d
2 changed files with 7 additions and 1 deletions

View File

@ -325,6 +325,12 @@ class DivisionByZero(DataError):
_by_sqlstate['22012'] = DivisionByZero _by_sqlstate['22012'] = DivisionByZero
class InvalidPrecedingOrFollowingSize(DataError):
pass
_by_sqlstate['22013'] = InvalidPrecedingOrFollowingSize
class InvalidArgumentForNtileFunction(DataError): class InvalidArgumentForNtileFunction(DataError):
pass pass

View File

@ -33,7 +33,7 @@ def main():
file_start = read_base_file(filename) file_start = read_base_file(filename)
# If you add a version to the list fix the docs (in errors.rst) # If you add a version to the list fix the docs (in errors.rst)
classes, errors = fetch_errors( 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") f = open(filename, "w")
for line in file_start: for line in file_start: