]> 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 12:53:47 +0000 (08:53 -0400)
commit853d6be759ad79d0d3e1d6a52fc7c9c32c0146ec
treeda6c80e1f65f96d92b7368f7e58c738a64d894bd
parente1a2247e71eb6298952ba9c0b65d4a796ad72dc4
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
(cherry picked from commit 4d58ca05e83048e999059a8c2c2e67cb77abf976)
doc/build/changelog/unreleased_14/8053.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/dialect/oracle/test_dialect.py
test/sql/test_compiler.py