Project

General

Profile

« Previous | Next » 

Revision 2397

sql.py: mk_flatten_mapping(): Filter str(col) through clean_name() to remove quotes, etc.

View differences:

sql.py
639 639
        items.append((orig_col, col))
640 640
    preserve = set(preserve)
641 641
    for col in cols:
642
        if col not in preserve: items.append((col, sql_gen.Col(str(col), into)))
642
        if col not in preserve:
643
            items.append((col, sql_gen.Col(clean_name(str(col)), into)))
643 644
    
644 645
    if not as_items: items = dict(items)
645 646
    return items

Also available in: Unified diff