Project

General

Profile

« Previous | Next » 

Revision 2536

sql_gen.py: FunctionCall: Removed repr() because it's a Code object and its to_str() does not take extra arguments

View differences:

lib/sql_gen.py
160 160
    def to_str(self, db):
161 161
        args_str = ', '.join((v.to_str(db) for v in self.args))
162 162
        return self.function.to_str(db)+'('+args_str+')'
163
    
164
    def __repr__(self): return self.to_str(mockDb, '<args>')
165 163

  
166 164
def wrap_in_func(function, value):
167 165
    '''Wraps a value inside a function call.

Also available in: Unified diff