Project

General

Profile

« Previous | Next » 

Revision 4993

sql_io.py: cleanup_table(): Print 'Cleaning up table' log message

View differences:

sql_io.py
27 27
    cols = filter(lambda c: sql_gen.is_text_col(db, c), cols)
28 28
    if not cols: return
29 29
    
30
    db.log_debug('Cleaning up table', level=1.5)
31
    
30 32
    expr = 'trim(both from %s)'
31 33
    for null in null_strs: expr = 'nullif('+expr+', '+db.esc_value(null)+')'
32 34
    changes = [(v, sql_gen.CustomCode(expr % v.to_str(db))) for v in cols]

Also available in: Unified diff