diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-05-23 15:20:25 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-05-23 15:20:25 +0000 |
commit | 2b2e27d8862637335a5306aea34174c5cf3904bc (patch) | |
tree | c2c9e5363132c31eae50b27f721288eeb0458a1c /lib/sqlalchemy/sql.py | |
parent | b9e6706e68f13729091011c98edf7e59a697e498 (diff) | |
download | sqlalchemy-2b2e27d8862637335a5306aea34174c5cf3904bc.tar.gz |
CompoundSelect (i.e. UNION etc.) needed self_group() to provide parenthesis
Diffstat (limited to 'lib/sqlalchemy/sql.py')
-rw-r--r-- | lib/sqlalchemy/sql.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py index 9a93474dc..4304d1ecc 100644 --- a/lib/sqlalchemy/sql.py +++ b/lib/sqlalchemy/sql.py @@ -2698,6 +2698,9 @@ class CompoundSelect(_SelectBaseMixin, FromClause): name = property(lambda s:s.keyword + " statement") + def self_group(self, against=None): + return _Grouping(self) + def _locate_oid_column(self): return self.selects[0].oid_column |