Project

General

Profile

« Previous | Next » 

Revision 2925

Removed unnecessary db.db.commit() calls because commits are now done automatically by DbConn's autocommit mode

View differences:

map
324 324
                if n == None: # doing full import
325 325
                    log('Clearing errors table')
326 326
                    sql.truncate(in_db, sql.errors_table(in_db, table))
327
                    if commit: in_db.db.commit()
328 327
                
329 328
                # Strip XML functions not in the DB
330 329
                special_funcs = db_xml.put_table_special_funcs | rel_funcs
......
422 421
                        sql.with_savepoint(out_db,
423 422
                            lambda: db_xml.put(out_db, row_root.firstChild,
424 423
                                row_ins_ct_ref, on_error))
425
                        if commit: out_db.db.commit()
426 424
                    except sql.DatabaseErrors, e: on_error(e)
427 425
            
428 426
            row_ct = process_inputs(root, row_ready)

Also available in: Unified diff