Project

General

Profile

« Previous | Next » 

Revision 4495

sql_io.py: put_table(): Creating the into table: into_out_pkey: If is_function, just use "result" as the output column name, without prefixing the function name. This shortens the table names of function calls on function calls, which need a fixed column name to detect which columns are function results and use just the table names for those columns.

View differences:

lib/sql_io.py
316 316
        into = sql_gen.as_Table(into_table_name(out_table, in_tables0, mapping,
317 317
            is_function))
318 318
        # Ensure into's out_pkey is different from in_pkey by prepending table
319
        into_out_pkey = strings.ustr(out_pkey_col)
319
        if is_function: into_out_pkey = out_pkey
320
        else: into_out_pkey = strings.ustr(out_pkey_col)
320 321
        
321 322
        # Set column sources
322 323
        in_cols = filter(sql_gen.is_table_col, mapping.values())

Also available in: Unified diff