Project

General

Profile

« Previous | Next » 

Revision 2182

db_xml.py: put_table(): Fixed bug where didn't commit right after inserting node, but instead waited until children with fkeys to parent (independent of the node itself) were inserted

View differences:

lib/db_xml.py
184 184
    # Insert node
185 185
    pkeys_loc = sql.put_table(db, esc_name(out_table), in_tables, row,
186 186
        row_ct_ref=row_ct_ref, table_is_esc=True)
187
    if commit: db.db.commit()
187 188
    
188 189
    # Insert children with fkeys to parent
189 190
    for child in children: put_table_(child, pkeys_loc)
190 191
    
191
    if commit: db.db.commit()
192 192
    return pkeys_loc

Also available in: Unified diff