Project

General

Profile

« Previous | Next » 

Revision 5553

sql_io.py: put_table(): Ensuring into's out_pkey is different from in_pkey: Prepend "out." instead of out_table to avoid long column names for the output pkey

View differences:

lib/sql_io.py
403 403
    if not is_literals:
404 404
        into = sql_gen.as_Table(into_table_name(out_table, in_tables0, mapping,
405 405
            is_function))
406
        # Ensure into's out_pkey is different from in_pkey by prepending table
406
        # Ensure into's out_pkey is different from in_pkey by prepending "out."
407 407
        if is_function: into_out_pkey = out_pkey
408
        else: into_out_pkey = strings.ustr(out_pkey_col)
408
        else: into_out_pkey = 'out.'+out_pkey
409 409
        
410 410
        # Set column sources
411 411
        in_cols = filter(sql_gen.is_table_col, mapping.values())

Also available in: Unified diff