Revision 2488
Added by Aaron Marcuse-Kubitza over 12 years ago
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
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