]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Expand reg for schema translate map for most special characters
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 7 Apr 2021 14:56:12 +0000 (10:56 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 7 Apr 2021 14:57:36 +0000 (10:57 -0400)
commitf6306921353b94ed2ffc36b3d04e0ba4284f4898
tree65562e32dbc2e205ec6228854fe3c8faff9c0e86
parentd1847bbe268d48d34f4781b317ac8e6bf13d44bd
Expand reg for schema translate map for most special characters

Fixed regression where usage of a token in the
:paramref:`_engine.Connection.execution_options.schema_translate_map`
dictionary which contained special characters such as braces would fail to
be substituted properly. Use of square bracket characters ``[]`` is now
explicitly disallowed as these are used as a delimiter character in the
current implementation.

Fixes: #6216
Change-Id: I7ccfc2292b17340054cedf485ed1adf3119b96c8
doc/build/changelog/unreleased_14/6216.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/sql/test_compiler.py