diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-11-03 22:13:17 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-11-03 22:13:17 +0000 |
| commit | 0af3f8f35b5e46f749d328e6fae90f6ff4915e97 (patch) | |
| tree | 8773ab5842f1b3ff39a2e05a9e5fc2ea132ec680 /lib/sqlalchemy/orm/query.py | |
| parent | 784eaa108a543602e4e7ad42828e8720106fd26d (diff) | |
| download | sqlalchemy-0af3f8f35b5e46f749d328e6fae90f6ff4915e97.tar.gz | |
- rewritten ClauseAdapter merged from the eager_minus_join branch; this is a much simpler
and "correct" version which will copy all elements exactly once, except for those which were
replaced with target elements. It also can match a wider variety of target elements including
joins and selects on identity alone.
Diffstat (limited to 'lib/sqlalchemy/orm/query.py')
| -rw-r--r-- | lib/sqlalchemy/orm/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py index 09a3a0f5b..b6200fee5 100644 --- a/lib/sqlalchemy/orm/query.py +++ b/lib/sqlalchemy/orm/query.py @@ -800,7 +800,7 @@ class Query(object): # adapt the given WHERECLAUSE to adjust instances of this query's mapped # table to be that of our select_table, # which may be the "polymorphic" selectable used by our mapper. - sql_util.ClauseAdapter(self.table).traverse(whereclause, stop_on=util.Set([self.table])) + whereclause = sql_util.ClauseAdapter(self.table).traverse(whereclause, stop_on=util.Set([self.table])) # if extra entities, adapt the criterion to those as well for m in self._entities: |
