]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure Grouping._with_binary_element_type() maintains class
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 2 Apr 2021 15:06:28 +0000 (11:06 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 2 Apr 2021 15:08:10 +0000 (11:08 -0400)
commita16687b3fc4179e8f42d8099aa6d1e6d18fedf70
tree562b2f5b7875abd28cbcc014cadbfa810b3a7bb5
parentba3e6860930b88f6c704250ccc711eb6965d0da0
Ensure Grouping._with_binary_element_type() maintains class

Fixed regression where use of the :meth:`.Operators.in_` method with a
:class:`_sql.Select` object against a non-table-bound column would produce
an ``AttributeError``, or more generally using a :class:`_sql.ScalarSelect`
that has no datatype in a binary expression would produce invalid state.

Fixes: #6181
Change-Id: I1ddea433b3603fdab8f489bff571b512a6ffc66b
doc/build/changelog/unreleased_14/6181.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/sql/test_operators.py
test/sql/test_roles.py