]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
(no commit message)
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 5 Nov 2005 03:58:36 +0000 (03:58 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 5 Nov 2005 03:58:36 +0000 (03:58 +0000)
lib/sqlalchemy/sql.py

index 506fb514fd3463e18f4a06524e3b3d907ad023a9..5a45226e4c3be61164113184bc053722a3683f91 100644 (file)
@@ -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