]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
(no commit message)
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 24 Sep 2005 03:25:19 +0000 (03:25 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 24 Sep 2005 03:25:19 +0000 (03:25 +0000)
lib/sqlalchemy/ansisql.py
test/select.py

index e8f382308c5484bf71eda30416877b590fad8631..fca984ba4b6d47e88652b223bccd0210b40c6d5b 100644 (file)
@@ -40,16 +40,15 @@ class ANSISQLEngine(sqlalchemy.engine.SQLEngine):
     def schemadropper(self, proxy, **params):
         return ANSISchemaDropper(proxy, **params)
 
+    def compiler(self, statement, bindparams):
+        return ANSICompiler(self, statement, bindparams)
+    
     def connect_args(self):
         return ([],{})
 
     def dbapi(self):
         return object()
 
-    def compile(self, statement, bindparams):
-        compiler = ANSICompiler(self, statement, bindparams)
-        statement.accept_visitor(compiler)
-        return compiler
 
 class ANSICompiler(sql.Compiled):
     def __init__(self, engine, statement, bindparams):
index b54c73e1b61c7726a1e0efbfdbb64927b1242b83..58bd809e3c9a2248940555641c354b3178cccbbe 100644 (file)
@@ -33,7 +33,7 @@ table3 = Table(
 class SQLTest(PersistTest):
     def runtest(self, clause, result, engine = None, params = None):
         c = clause.compile(engine, params)
-        print "\n" + str(c) + repr(c.get_params())
+        self.echo("\n" + str(c) + repr(c.get_params()))
         cc = re.sub(r'\n', '', str(c))
         self.assert_(cc == result)