]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- [bug] Calls to query.join() to a single-table
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 4 Dec 2011 01:57:27 +0000 (20:57 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 4 Dec 2011 01:57:27 +0000 (20:57 -0500)
commit252acd50d8ae0fe58d61cf7f053dfe1fe4206de4
tree6d2f1c17aeb3de4af524814c93d1950e68e27f2d
parent7c993de6cee97dc8c2c9ac0a988e410ccd7fa97c
- [bug] Calls to query.join() to a single-table
inheritance subclass are now tracked, and
are used to eliminate the additional WHERE..
IN criterion normally tacked on with single
table inheritance, since the join should
accommodate it.  This allows OUTER JOIN
to a single table subclass to produce
the correct results, and overall will produce
fewer WHERE criterion when dealing with
single table inheritance joins.
[ticket:2328]
CHANGES
lib/sqlalchemy/orm/query.py
test/orm/inheritance/test_single.py