Project

General

Profile

« Previous | Next » 

Revision 2562

sql.py: put_table(): FunctionValueException: Fixed bug where only function calls, not plain columns, were handled, by using sql_gen.unwrap_func_call() to remove any function call only if there was one

View differences:

lib/sql.py
1040 1040
            func_name = e.name
1041 1041
            value = e.value
1042 1042
            for out_col, in_col in mapping.iteritems():
1043
                in_col = sql_gen.remove_col_rename(in_col)
1044
                if (isinstance(in_col, sql_gen.FunctionCall)
1045
                    and in_col.function.name == func_name):
1046
                    invalid2null(in_col.args[0], value)
1043
                invalid2null(sql_gen.unwrap_func_call(in_col, func_name), value)
1047 1044
        except MissingCastException, e:
1048 1045
            log_exc(e)
1049 1046
            

Also available in: Unified diff