]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed Query being able to join() from individual columns of
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 Jun 2009 21:23:11 +0000 (21:23 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 Jun 2009 21:23:11 +0000 (21:23 +0000)
commit698a3c1ac665e7cd2ef8d5ad3ebf51b7fe6661f4
treef7c4f623bcb1f8df537b08ada140d6ba44edec64
parent31b95e6cdce83e14cd1c462c2b7d16a0f8652d19
- Fixed Query being able to join() from individual columns of
a joined-table subclass entity, i.e.
query(SubClass.foo, SubcClass.bar).join(<anything>).
In most cases, an error "Could not find a FROM clause to join
from" would be raised. In a few others, the result would be
returned in terms of the base class rather than the subclass -
so applications which relied on this erroneous result need to be
adjusted. [ticket:1431]
CHANGES
lib/sqlalchemy/orm/query.py
test/orm/inheritance/query.py
test/orm/query.py