Project

General

Profile

« Previous | Next » 

Revision 2918

sql.py: Use new DbConn.TempFunction()

View differences:

sql.py
637 637
        return_type = 'SETOF '+returning.to_str(db)+'%TYPE'
638 638
        while True:
639 639
            try:
640
                function = sql_gen.TempFunction(function_name, db.debug_temp)
640
                function = db.TempFunction(function_name)
641 641
                
642 642
                function_query = '''\
643 643
CREATE FUNCTION '''+function.to_str(db)+'''()
......
808 808
    errors_table = sql_gen.as_Table(errors_table)
809 809
    srcs = map(sql_gen.to_name_only_col, col.srcs)
810 810
    function_name = str(sql_gen.FunctionCall(type_, *srcs))
811
    function = sql_gen.TempFunction(function_name, db.debug_temp)
811
    function = db.TempFunction(function_name)
812 812
    
813 813
    while True:
814 814
        # Create function definition

Also available in: Unified diff