Project

General

Profile

« Previous | Next » 

Revision 2717

sql.py: cast(): function_name: Fixed bug where sql_gen.FunctionCall()'s parameters needed to be passed with *args syntax

View differences:

lib/sql.py
771 771
    if save_errors:
772 772
        errors_table = sql_gen.as_Table(errors_table)
773 773
        srcs = map(sql_gen.to_name_only_col, col.srcs)
774
        function_name = str(sql_gen.FunctionCall(type_, srcs))
774
        function_name = str(sql_gen.FunctionCall(type_, *srcs))
775 775
    else: function_name = type_
776 776
    function = sql_gen.TempFunction(function_name, db.autocommit)
777 777
    

Also available in: Unified diff