]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: more careful stripping of error prefixes
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 31 Mar 2024 20:57:42 +0000 (20:57 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 1 Apr 2024 22:41:47 +0000 (22:41 +0000)
commite9e62a4455422591f82340267636743af38c727b
tree0f65b917bbfff02b7a183570d75e8a889dbc0c03
parent979fb51de33e4a296010af3e1cef6b9f7e17e881
fix: more careful stripping of error prefixes

Only strip the known prefixes, both in English and in the currently
known localizations.

Added script to generate regexp to match every backend localization. The
script was executed on PostgreSQL commit f4ad0021af (on master branch,
before v17).

Close #752.
docs/news.rst
psycopg/psycopg/pq/misc.py
tests/test_errors.py
tools/update_error_prefixes.py [new file with mode: 0755]