]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed bug in single table inheritance where a chain of joins
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 23 Oct 2014 05:54:10 +0000 (01:54 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 23 Oct 2014 05:54:10 +0000 (01:54 -0400)
commit445b9e2aff4e45a7756a8ca8dfbd51bf359a831b
treefb5d5b4706c8ba1370192caa7a0973dc35358459
parent47d316ec665e5d5fc7ac750ba62b189a64d98ddd
- Fixed bug in single table inheritance where a chain of joins
that included the same single inh entity more than once
(normally this should raise an error) could, in some cases
depending on what was being joined "from", implicitly alias the
second case of the single inh entity, producing
a query that "worked".   But as this implicit aliasing is not
intended in the case of single table inheritance, it didn't
really "work" fully and was very misleading, since it wouldn't
always appear.
fixes #3233
doc/build/changelog/changelog_10.rst
doc/build/changelog/migration_10.rst
lib/sqlalchemy/orm/query.py
test/orm/inheritance/test_single.py