diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-05-09 23:58:30 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-05-09 23:58:30 +0000 |
commit | d3621ae961a869c6bdb68dc8738bb732d5b00dc1 (patch) | |
tree | 44e74c9448322ead4058ccaec38bf9715f3858bc /lib/sqlalchemy/sql/util.py | |
parent | 6935add67eab74a2e64d86667059f7f0e476a6a5 (diff) | |
download | sqlalchemy-d3621ae961a869c6bdb68dc8738bb732d5b00dc1.tar.gz |
- fixed a fairly critical bug in clause adaption/corresponding column in conjunction with annotations
- implicit order by is removed, modified many tests to explicitly set ordering, probably many more to go
once it hits the buildbot.
Diffstat (limited to 'lib/sqlalchemy/sql/util.py')
-rw-r--r-- | lib/sqlalchemy/sql/util.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/util.py b/lib/sqlalchemy/sql/util.py index 944a68def..6c8ef8f5a 100644 --- a/lib/sqlalchemy/sql/util.py +++ b/lib/sqlalchemy/sql/util.py @@ -147,6 +147,11 @@ class Annotated(object): ) def __init__(self, element, values): + # force FromClause to generate their internal + # collections into __dict__ + if isinstance(element, expression.FromClause): + element.c + self.__dict__ = element.__dict__.copy() self.__element = element self._annotations = values @@ -357,7 +362,7 @@ class ClauseAdapter(visitors.ReplacingCloningVisitor): self.include = include self.exclude = exclude self.equivalents = equivalents or {} - + def _corresponding_column(self, col, require_embedded): newcol = self.selectable.corresponding_column(col, require_embedded=require_embedded) |