]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Index should extract __clause_element__() early
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 29 Jul 2016 22:17:43 +0000 (18:17 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 30 Jul 2016 14:11:53 +0000 (10:11 -0400)
commit6327c59d4f34947128bd9b2860a1732a6932b4d7
tree8b68fce14fa450737c6278437f2af75fb7095e1e
parente467e899e126db2db7c25d533aee12d78c2dbdfb
Index should extract __clause_element__() early

Fixed bug where :class:`.Index` would fail to extract columns from
compound SQL expressions if those SQL expressions were wrapped inside
of an ORM-style ``__clause_element__()`` construct.  This bug
exists in 1.0.x as well, however in 1.1 is more noticeable as
hybrid_property @expression now returns a wrapped element.

Fixes: #3763
Change-Id: I992536386503a1fb3f2305790abe008d72c44c4a
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/sql/schema.py
test/sql/test_metadata.py