Project

General

Profile

« Previous | Next » 

Revision 2734

bin/map: If doing full import, clear errors table

View differences:

bin/map
322 322
            if by_col:
323 323
                map_table(col_names, []) # just create the template
324 324
                
325
                if n == None: # doing full import
326
                    log('Clearing errors table')
327
                    sql.truncate(in_db, sql.errors_table(in_db, table))
328
                    if commit: in_db.db.commit()
329
                
325 330
                # Strip XML functions not in the DB
326 331
                special_funcs = db_xml.put_table_special_funcs | rel_funcs
327 332
                xml_func.process(root, rel_funcs=special_funcs)

Also available in: Unified diff