]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- query.join() can also accept tuples of attribute
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 23 Jan 2008 19:20:49 +0000 (19:20 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 23 Jan 2008 19:20:49 +0000 (19:20 +0000)
commitc8b50c1ffb4ab104144ef9058fa4c653b10ad915
treebf59a61d9c5a1ba4f6c1ef1fb2342ad140b63885
parentf980c5c88f616dddf51089dd37ee1023400c0a41
- query.join() can also accept tuples of attribute
name/some selectable as arguments.  This allows
construction of joins *from* subclasses of a
polymorphic relation, i.e.:

query(Company).\
join(
  [('employees', people.join(engineer)), Engineer.name]
)
CHANGES
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/util.py
lib/sqlalchemy/sql/expression.py
test/orm/inheritance/query.py