summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-03-09 00:24:15 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-03-09 00:24:15 +0000
commitb5060e88ff4604af4c9e51003a078dbb59fce968 (patch)
tree539fe14f93a268875e1ea4717c50dbaaf3c66e90 /lib/sqlalchemy/sql.py
parentf057ed6136fe5583d4174a55153544783e76699a (diff)
downloadsqlalchemy-b5060e88ff4604af4c9e51003a078dbb59fce968.tar.gz
added 'noninherited table' prop to mapper indicating the "lead" table, in the case of
inheritance. relations now create priamry/secondary joins against that lead table. if you want to create it against an inherited table, use explicit join conditions. added 'correlate' argument to CompoundSelect to get polymorph example working again.
Diffstat (limited to 'lib/sqlalchemy/sql.py')
-rw-r--r--lib/sqlalchemy/sql.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py
index 04949c935..89b4b5585 100644
--- a/lib/sqlalchemy/sql.py
+++ b/lib/sqlalchemy/sql.py
@@ -1132,6 +1132,7 @@ class CompoundSelect(SelectBaseMixin, FromClause):
self.selects = selects
self.use_labels = kwargs.pop('use_labels', False)
self.parens = kwargs.pop('parens', False)
+ self.correlate = kwargs.pop('correlate', False)
self.oid_column = selects[0].oid_column
for s in self.selects:
s.group_by(None)