diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-09-26 17:08:19 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-09-26 17:08:19 +0000 |
commit | 3e672bbfc8d284b58208987d5fb858e424d02111 (patch) | |
tree | f0ddef9742f0a25f93922cdb429dec68e3139e10 /lib/sqlalchemy/sql/expression.py | |
parent | 9d16ae440b416358b469e6881f1203095233c37c (diff) | |
download | sqlalchemy-3e672bbfc8d284b58208987d5fb858e424d02111.tar.gz |
- 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.
Diffstat (limited to 'lib/sqlalchemy/sql/expression.py')
-rw-r--r-- | lib/sqlalchemy/sql/expression.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index d649fc0ff..4bacf4be3 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -2425,14 +2425,6 @@ class Alias(FromClause): def _get_from_objects(self, **modifiers): return [self] - def _proxy_column(self, column): - c = column._make_proxy(self) - # send a note to ResultProxy to not "approximate" - # this column based on its name when targeting result columns - # see test/sql/query.py QueryTest.test_exact_match - c._exact_match = True - return c - bind = property(lambda s: s.selectable.bind) class _ColumnElementAdapter(ColumnElement): |