Project

General

Profile

« Previous | Next » 

Revision 5384

cleanup_table(): Use new sql.table_cols() instead of sql.table_col_names()

View differences:

lib/sql_io.py
24 24

  
25 25
def cleanup_table(db, table):
26 26
    table = sql_gen.as_Table(table)
27
    cols = [sql_gen.as_Col(strings.ustr(c), table)
28
        for c in sql.table_col_names(db, table)]
29
    cols = filter(lambda c: sql_gen.is_text_col(db, c), cols)
27
    cols = filter(lambda c: sql_gen.is_text_col(db, c),
28
        sql.table_cols(db, table))
30 29
    try: cols.remove(sql.pkey_col_(db, table))
31 30
    except ValueError: pass
32 31
    if not cols: return

Also available in: Unified diff