Revision 4914
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/sql_io.py | ||
---|---|---|
22 | 22 |
|
23 | 23 |
def cleanup_table(db, table): |
24 | 24 |
table = sql_gen.as_Table(table) |
25 |
cols = [sql_gen.as_Col(c, table) for c in sql.table_cols(db, table)] |
|
25 |
cols = [sql_gen.as_Col(strings.ustr(c), table) |
|
26 |
for c in sql.table_cols(db, table)] |
|
26 | 27 |
cols = filter(lambda c: sql_gen.is_text_col(db, c), cols) |
27 | 28 |
|
28 | 29 |
expr = 'trim(both from %s)' |
Also available in: Unified diff
sql_io.py: cleanup_table(): Fixed bug where each column name needed to be converted to Unicode before being concatenated with other strings, to support non-ASCII characters