]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- created a link between QueryContext and SelectionContext; the attribute
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 26 Sep 2007 17:08:19 +0000 (17:08 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 26 Sep 2007 17:08:19 +0000 (17:08 +0000)
commit3e672bbfc8d284b58208987d5fb858e424d02111
treef0ddef9742f0a25f93922cdb429dec68e3139e10
parent9d16ae440b416358b469e6881f1203095233c37c
- created a link between QueryContext and SelectionContext; the attribute
dictionary of QueryContext is now passed to SelectionContext inside
of Query.instances(), allowing messages to be passed between the two stages.
- removed the recent "exact match" behavior of Alias objects, they're back to
their usual behavior.
- tightened up the relationship between the Query's generation
  of "eager load" aliases, and Query.instances() which actually grabs the
  eagerly loaded rows.  If the aliases were not specifically generated for
  that statement by EagerLoader, the EagerLoader will not take effect
  when the rows are fetched.  This prevents columns from being grabbed accidentally
  as being part of an eager load when they were not meant for such, which can happen
  with textual SQL as well as some inheritance situations.  It's particularly important
  since the "anonymous aliasing" of columns uses simple integer counts now to generate
  labels.
CHANGES
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/shard.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/sql/expression.py
test/sql/query.py