From 6ab0aeed67d5da1f2f8e481108d83c4471e6244c Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 5 Nov 2005 03:58:36 +0000 Subject: [PATCH] --- lib/sqlalchemy/sql.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py index 506fb514fd..5a45226e4c 100644 --- a/lib/sqlalchemy/sql.py +++ b/lib/sqlalchemy/sql.py @@ -529,7 +529,10 @@ class Selectable(FromClause): def alias(self, name): return Alias(self, name) - + def union(self, other, **kwargs): + return union(self, other, **kwargs) + def union_all(self, other, **kwargs): + return union_all(self, other, **kwargs) def group_parenthesized(self): """indicates if this Selectable requires parenthesis when grouped into a compound statement""" return True @@ -817,7 +820,6 @@ class Select(Selectable): def compile(self, engine = None, bindparams = None): if engine is None: engine = self.engine - print "ok, and engine is " + repr(self.engine) if engine is None: raise "no engine supplied, and no engine could be located within the clauses!" @@ -855,12 +857,9 @@ class Select(Selectable): return self._engine for f in self._froms.values(): - print repr(self) + " looking in " + repr(f) e = f.engine - print " and its " + repr(e) if e is not None: self._engine = e - print "returning it !" return e return None -- 2.47.2