]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Added a new exception to detect the case where two
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 24 Nov 2012 21:14:58 +0000 (16:14 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 24 Nov 2012 21:14:58 +0000 (16:14 -0500)
commite2697d547ec8c24c9a37a72fc60abe73b7dee81b
tree7996ba7bb2879fc97f41526211a04a975952e4f0
parent252bce8b02b1587a26b899c644ba28e78f5db4bc
Added a new exception to detect the case where two
subclasses are being loaded using with_polymorphic(),
each subclass contains a relationship attribute of the same
name, and eager loading is being applied to one or both.
This is an ongoing bug which can't be immediately fixed,
so since the results are usually wrong in any case it raises an
exception for now.   0.7 has the same issue, so an exception
raise here probably means the code was returning the wrong
data in 0.7.  [ticket:2614]
doc/build/changelog/changelog_08.rst
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/util.py
test/orm/test_eager_relations.py
test/orm/test_subquery_relations.py