]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
implement literal_binds with expanding + bind_expression
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 Dec 2022 15:22:36 +0000 (10:22 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 Dec 2022 15:34:05 +0000 (10:34 -0500)
commit84ba8874e146bcdbf46ce70ece32c4c224c3fd44
tree668b79268cc172ad4292a1875b3d9d14c8eaf47e
parent6f6dc443663f6b63a8fe48b3504cae59cfbe9d56
implement literal_binds with expanding + bind_expression

Fixed bug where SQL compilation would fail (assertion fail in 2.0, NoneType
error in 1.4) when using an expression whose type included
:meth:`_types.TypeEngine.bind_expression`, in the context of an "expanding"
(i.e. "IN") parameter in conjunction with the ``literal_binds`` compiler
parameter.

Fixes: #8989
Change-Id: Ic9fd27b46381b488117295ea5a492d8fc158e39f
(cherry picked from commit 8c6de3c2c43ab372cbbe76464b4c5be3b6457252)
doc/build/changelog/unreleased_14/8989.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/sql/test_type_expressions.py