Project

General

Profile

« Previous | Next » 

Revision 3493

sql_gen.py: with_table(): Only set the table if the passed-in value is a Col or FunctionCall

View differences:

lib/sql_gen.py
311 311
    elif isinstance(col, FunctionCall):
312 312
        col = copy.deepcopy(col) # don't modify input!
313 313
        col.args[0].table = table
314
    else:
314
    elif isinstance(col, Col):
315 315
        col = copy.copy(col) # don't modify input!
316 316
        col.table = table
317 317
    return col

Also available in: Unified diff