]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- merged with_polymorphic branch, which was merged with query_columns branch
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 29 Mar 2008 00:00:49 +0000 (00:00 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 29 Mar 2008 00:00:49 +0000 (00:00 +0000)
commitc4955c05a3ab40d53c83982da612e746c662640d
treec979c566711917679c9fa5d31b6dbcdb1c76eb34
parent30020880d90ee2f983b8e6bfb1624349209dd8b0
- merged with_polymorphic branch, which was merged with query_columns branch
- removes everything to do with select_table, which remains as a keyword argument synonymous with
with_polymorphic=('*', select_table).
- all "polymorphic" selectables find their way to Query by way of _set_select_from() now, so that
all joins/aliasing/eager loads/etc. is handled consistently.  Mapper has methods for producing
polymorphic selectables so that Query and eagerloaders alike can get to them.
- row aliasing simplified, so that they don't need to nest.  they only need the source selectable
and adapt to whatever incoming columns they get.
- Query is more egalitarian about mappers/columns now.  Still has a strong sense of "entity zero",
but also introduces new unpublished/experimental _values() method which sets up a columns-only query.
- Query.order_by() and Query.group_by() take *args now (also still take a list, will likely deprecate
in 0.5).  May want to do this for select() as well.
- the existing "check for False discriminiator" "fix" was not working completely, added coverage
- orphan detection was broken when the target object was a subclass of the mapper with the orphaned
relation, fixed that too.
22 files changed:
CHANGES
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/dependency.py
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/util.py
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/sql/util.py
lib/sqlalchemy/sql/visitors.py
lib/sqlalchemy/util.py
test/orm/inheritance/basic.py
test/orm/inheritance/polymorph.py
test/orm/inheritance/polymorph2.py
test/orm/inheritance/query.py
test/orm/mapper.py
test/orm/query.py
test/testlib/schema.py
test/testlib/testing.py