]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Changed the approach by which the "single inheritance criterion"
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 29 Aug 2014 16:05:00 +0000 (12:05 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 29 Aug 2014 16:05:00 +0000 (12:05 -0400)
commitfbcb056d90f4a54eed7cf270818c9a1fc173f99f
treee095fb7b11a76ea152595b561f79222896b76b1d
parent08d2c863df04f954f305b460bba45b15a410fc74
- Changed the approach by which the "single inheritance criterion"
is applied, when using :meth:`.Query.from_self`, or its common
user :meth:`.Query.count`.  The criteria to limit rows to those
with a certain type is now indicated on the inside subquery,
not the outside one, so that even if the "type" column is not
available in the columns clause, we can filter on it on the "inner"
query.
fixes #3177
doc/build/changelog/changelog_10.rst
doc/build/changelog/migration_10.rst
lib/sqlalchemy/orm/query.py
test/orm/inheritance/test_single.py