diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2019-10-19 14:56:21 +0200 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2019-10-19 15:22:48 +0200 |
commit | d5c7ec7ae8efdfb194b1ffe4b4c462396579206f (patch) | |
tree | 398479cd5955eb92cd4c7d57ac01079875ae5538 /scripts/make_errorcodes.py | |
parent | 8f11821c173d723824c537c6b36cb5e7b883149d (diff) | |
download | psycopg2-d5c7ec7ae8efdfb194b1ffe4b4c462396579206f.tar.gz |
Added Postgres 12 errors
Diffstat (limited to 'scripts/make_errorcodes.py')
-rwxr-xr-x | scripts/make_errorcodes.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/scripts/make_errorcodes.py b/scripts/make_errorcodes.py index 0f8a371..29503da 100755 --- a/scripts/make_errorcodes.py +++ b/scripts/make_errorcodes.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 errorcodes.rst) classes, errors = fetch_errors( - ['9.1', '9.2', '9.3', '9.4', '9.5', '9.6', '10', '11']) + ['9.1', '9.2', '9.3', '9.4', '9.5', '9.6', '10', '11', '12']) f = open(filename, "w") for line in file_start: @@ -109,12 +109,6 @@ def fetch_errors(versions): # https://github.com/postgres/postgres/commit/12f87b2c82 errors['22']['22020'] = 'INVALID_LIMIT_VALUE' - # TODO: this error was added in PG 10 beta 1 but dropped in the - # final release. It doesn't harm leaving it in the file. Check if it - # will be added back in PG 12. - # https://github.com/postgres/postgres/commit/28e0727076 - errors['55']['55P04'] = 'UNSAFE_NEW_ENUM_VALUE_USAGE' - for c, cerrs in e1.items(): errors[c].update(cerrs) |