Project

General

Profile

« Previous | Next » 

Revision 2690

sql_gen.py: FunctionCall: Ensure all args are Code objects using as_Value()

View differences:

lib/sql_gen.py
214 214
class FunctionCall(Code):
215 215
    def __init__(self, function, *args):
216 216
        '''
217
        @param args [Code...] The function's arguments
217
        @param args [Code|literal-value...] The function's arguments
218 218
        '''
219 219
        if not isinstance(function, Code): function = Function(function)
220
        args = map(remove_col_rename, args)
220
        args = map(remove_col_rename, map(as_Value, args))
221 221
        
222 222
        self.function = function
223 223
        self.args = args

Also available in: Unified diff