diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2022-10-06 02:26:09 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2022-10-06 02:26:09 +0100 |
commit | 29a65f756c7871010ecc73828458d4d9b6a4928d (patch) | |
tree | 22984f66604611c6221ba57d53f7e864ab81e023 /doc/src | |
parent | 6d815f5df95b7c920df0f9d9bcfb8ecc47510cbc (diff) | |
download | psycopg2-29a65f756c7871010ecc73828458d4d9b6a4928d.tar.gz |
chore: upgrade error codes to PostgreSQL 15
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/errorcodes.rst | 2 | ||||
-rw-r--r-- | doc/src/errors.rst | 6 | ||||
-rw-r--r-- | doc/src/install.rst | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/doc/src/errorcodes.rst b/doc/src/errorcodes.rst index 2966efa..4094dc5 100644 --- a/doc/src/errorcodes.rst +++ b/doc/src/errorcodes.rst @@ -50,7 +50,7 @@ An example of the available constants defined in the module: '42P01' Constants representing all the error values defined by PostgreSQL versions -between 8.1 and 13 are included in the module. +between 8.1 and 15 are included in the module. .. autofunction:: lookup(code) diff --git a/doc/src/errors.rst b/doc/src/errors.rst index d1aed13..d6a7f4f 100644 --- a/doc/src/errors.rst +++ b/doc/src/errors.rst @@ -14,11 +14,15 @@ .. versionchanged:: 2.8.6 added errors introduced in PostgreSQL 13 +.. versionchanged:: 2.9.2 added errors introduced in PostgreSQL 14 + +.. versionchanged:: 2.9.4 added errors introduced in PostgreSQL 15 + This module exposes the classes psycopg raises upon receiving an error from the database with a :sql:`SQLSTATE` value attached (available in the `~psycopg2.Error.pgcode` attribute). The content of the module is generated from the PostgreSQL source code and includes classes for every error defined -by PostgreSQL in versions between 9.1 and 13. +by PostgreSQL in versions between 9.1 and 15. Every class in the module is named after what referred as "condition name" `in the documentation`__, converted to CamelCase: e.g. the error 22012, diff --git a/doc/src/install.rst b/doc/src/install.rst index 8d22137..7ac2d14 100644 --- a/doc/src/install.rst +++ b/doc/src/install.rst @@ -132,7 +132,7 @@ The current `!psycopg2` implementation supports: NOTE: keep consistent with setup.py and the /features/ page. - Python versions from 3.6 to 3.10 -- PostgreSQL server versions from 7.4 to 14 +- PostgreSQL server versions from 7.4 to 15 - PostgreSQL client library version from 9.1 |