From 1aebdb231f395aa68bd1767ffd897189107e070a Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 17 Feb 2008 15:35:30 +0000 Subject: get basic compilation working for [ticket:972] --- lib/sqlalchemy/databases/informix.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/sqlalchemy/databases') diff --git a/lib/sqlalchemy/databases/informix.py b/lib/sqlalchemy/databases/informix.py index 400a2761e..d91b1b9b8 100644 --- a/lib/sqlalchemy/databases/informix.py +++ b/lib/sqlalchemy/databases/informix.py @@ -368,11 +368,12 @@ class InfoDialect(default.DefaultDialect): class InfoCompiler(compiler.DefaultCompiler): """Info compiler modifies the lexical structure of Select statements to work under non-ANSI configured Oracle databases, if the use_ansi flag is False.""" - def __init__(self, dialect, statement, parameters=None, **kwargs): + + def __init__(self, *args, **kwargs): self.limit = 0 self.offset = 0 - compiler.DefaultCompiler.__init__( self , dialect , statement , parameters , **kwargs ) + compiler.DefaultCompiler.__init__( self , *args, **kwargs ) def default_from(self): return " from systables where tabname = 'systables' " @@ -401,7 +402,7 @@ class InfoCompiler(compiler.DefaultCompiler): # TODO: dont modify the original select, generate a new one a = [ __label(c) for c in select._raw_columns ] - for c in select.order_by_clause.clauses: + for c in select._order_by_clause.clauses: if ( __label(c) not in a ) and getattr( c , 'name' , '' ) != 'oid': select.append_column( c ) -- cgit v1.2.1