diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-03-08 20:51:51 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-03-08 20:51:51 +0000 |
commit | 06b8c73ad5136f615957bdf4e535330885ae1635 (patch) | |
tree | b3f59c9d1083e4a126425e0c09fca844f0b675c8 /lib/sqlalchemy/engine.py | |
parent | 3aa4dd6f2b4e3ba80706960ecb8a988087f9a573 (diff) | |
download | sqlalchemy-06b8c73ad5136f615957bdf4e535330885ae1635.tar.gz |
serious overhaul to get eager loads to work inline with an inheriting mapper, when the inheritance/eager loads share the same table. mapper inheritance will also favor the columns from the child table over those of the parent table when assigning column values to object attributes. "correlated subqueries" require a flag "correlated=True" if they are in the FROM clause of another SELECT statement, and they want to be correlated. this flag is set by default when using an "exists" clause.
Diffstat (limited to 'lib/sqlalchemy/engine.py')
-rw-r--r-- | lib/sqlalchemy/engine.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/engine.py b/lib/sqlalchemy/engine.py index 518ea8a15..d61320533 100644 --- a/lib/sqlalchemy/engine.py +++ b/lib/sqlalchemy/engine.py @@ -712,6 +712,7 @@ class ResultProxy: if self.props.setdefault(colname, rec) is not rec: self.props[colname] = (ResultProxy.AmbiguousColumn(colname), 0) self.keys.append(colname) + #print "COLNAME", colname self.props[i] = rec i+=1 @@ -719,6 +720,7 @@ class ResultProxy: if isinstance(key, schema.Column) or isinstance(key, sql.ColumnElement): try: rec = self.props[key._label.lower()] + #print "GOT IT FROM LABEL FOR ", key._label except KeyError: try: rec = self.props[key.key.lower()] |