Project

General

Profile

« Previous | Next » 

Revision 2488

db_xml.py: put_table(): Pass custom temp_prefix to sql.put_table() for relational funcs, so that their value param's input column name is included in the temp table name

View differences:

lib/db_xml.py
218 218
            row[out_col] = sql_gen.NamedCol(out_col, value)
219 219
    
220 220
    # Insert node
221
    pkeys_loc = sql.put_table(db, out_table, in_tables, row, row_ins_ct_ref)
221
    temp_prefix = out_table
222
    if xml_func.is_func_name(out_table): temp_prefix += '_'+row['value'].name
223
    pkeys_loc = sql.put_table(db, out_table, in_tables, row, row_ins_ct_ref,
224
        temp_prefix)
222 225
    if commit: db.db.commit()
223 226
    
224 227
    # Insert children with fkeys to parent

Also available in: Unified diff