diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-05-25 08:47:29 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-05-25 10:07:31 -0400 |
commit | a5d481eaa5bff958692fc3b0024f0b9b1c4f56c6 (patch) | |
tree | e1a53b2d9ee12ac5d49c14eb85483c0a118745c7 /test/ext/mypy/plain_files/sql_operations.py | |
parent | d7b131d2dfc4c519b23d9ed29364036ef88b1863 (diff) | |
download | sqlalchemy-a5d481eaa5bff958692fc3b0024f0b9b1c4f56c6.tar.gz |
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
Diffstat (limited to 'test/ext/mypy/plain_files/sql_operations.py')
-rw-r--r-- | test/ext/mypy/plain_files/sql_operations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ext/mypy/plain_files/sql_operations.py b/test/ext/mypy/plain_files/sql_operations.py index b4d0bd006..0ed0df661 100644 --- a/test/ext/mypy/plain_files/sql_operations.py +++ b/test/ext/mypy/plain_files/sql_operations.py @@ -56,7 +56,7 @@ if typing.TYPE_CHECKING: # EXPECTED_RE_TYPE: sqlalchemy..*BinaryExpression\[builtins.bool\] reveal_type(expr2) - # EXPECTED_RE_TYPE: sqlalchemy..*ColumnElement\[Union\[builtins.float, decimal.Decimal\]\] + # EXPECTED_RE_TYPE: sqlalchemy..*ColumnElement\[Union\[builtins.float, .*\.Decimal\]\] reveal_type(expr3) # EXPECTED_RE_TYPE: sqlalchemy..*UnaryExpression\[builtins.int.?\] |