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):
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)