Project

General

Profile

« Previous | Next » 

Revision 5129

sql_io.py: cleanup_table(): Don't clean up the pkey, because the canonicalization involved may produce collisions (as it does for TNRS.tnrs)

View differences:

lib/sql_io.py
27 27
    cols = [sql_gen.as_Col(strings.ustr(c), table)
28 28
        for c in sql.table_cols(db, table)]
29 29
    cols = filter(lambda c: sql_gen.is_text_col(db, c), cols)
30
    try: cols.remove(sql.pkey_col_(db, table))
31
    except ValueError: pass
30 32
    if not cols: return
31 33
    
32 34
    db.log_debug('Cleaning up table', level=1.5)

Also available in: Unified diff