mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-10 19:16:34 +03:00
errorcodes map and errors classes updated to PostgreSQL 14.
This commit is contained in:
parent
1a0c02a6f4
commit
7dd193a7f7
4
NEWS
4
NEWS
|
@ -4,7 +4,9 @@ Current release
|
|||
What's new in psycopg 2.9.2
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Raise `ValueError` for dates >= Y10k (:ticket:`#1307`)
|
||||
- Raise `ValueError` for dates >= Y10k (:ticket:`#1307`).
|
||||
- `~psycopg2.errorcodes` map and `~psycopg2.errors` classes updated to
|
||||
PostgreSQL 14.
|
||||
|
||||
|
||||
What's new in psycopg 2.9.1
|
||||
|
|
|
@ -391,6 +391,7 @@ ADMIN_SHUTDOWN = '57P01'
|
|||
CRASH_SHUTDOWN = '57P02'
|
||||
CANNOT_CONNECT_NOW = '57P03'
|
||||
DATABASE_DROPPED = '57P04'
|
||||
IDLE_SESSION_TIMEOUT = '57P05'
|
||||
|
||||
# Class 58 - System Error (errors external to PostgreSQL itself)
|
||||
SYSTEM_ERROR = '58000'
|
||||
|
|
|
@ -279,6 +279,7 @@
|
|||
{"57P02", "CrashShutdown"},
|
||||
{"57P03", "CannotConnectNow"},
|
||||
{"57P04", "DatabaseDropped"},
|
||||
{"57P05", "IdleSessionTimeout"},
|
||||
|
||||
/* Class 58 - System Error (errors external to PostgreSQL itself) */
|
||||
{"58000", "SystemError"},
|
||||
|
|
|
@ -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', '12', '13'])
|
||||
['9.1', '9.2', '9.3', '9.4', '9.5', '9.6', '10', '11', '12', '13', '14'])
|
||||
|
||||
disambiguate(errors)
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ def main():
|
|||
|
||||
# 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', '11', '12', '13'])
|
||||
['9.1', '9.2', '9.3', '9.4', '9.5', '9.6', '10', '11', '12', '13', '14'])
|
||||
|
||||
f = open(filename, "w")
|
||||
print("/*\n * Autogenerated by 'scripts/make_errors.py'.\n */\n", file=f)
|
||||
|
|
Loading…
Reference in New Issue
Block a user