]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
apply bindparam escape name to processors dictionary
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 25 May 2022 12:47:29 +0000 (08:47 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 25 May 2022 14:07:31 +0000 (10:07 -0400)
commita5d481eaa5bff958692fc3b0024f0b9b1c4f56c6
treee1a53b2d9ee12ac5d49c14eb85483c0a118745c7
parentd7b131d2dfc4c519b23d9ed29364036ef88b1863
apply bindparam escape name to processors dictionary

Fixed SQL compiler issue where the "bind processing" function for a bound
parameter would not be correctly applied to a bound value if the bound
parameter's name were "escaped". Concretely, this applies, among other
cases, to Oracle when a :class:`.Column` has a name that itself requires
quoting, such that the quoting-required name is then used for the bound
parameters generated within DML statements, and the datatype in use
requires bind processing, such as the :class:`.Enum` datatype.

Fixes: #8053
Change-Id: I39d060a87e240b4ebcfccaa9c535e971b7255d99
doc/build/changelog/unreleased_14/8053.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/dialect/oracle/test_dialect.py
test/ext/mypy/plain_files/sql_operations.py
test/sql/test_compiler.py