Project

General

Profile

« Previous | Next » 

Revision 2716

sql.py: mk_flatten_mapping(): Propagate the original columns' sources to the flattened columns so they won't be lost in the flattening

View differences:

lib/sql.py
737 737
        items.append((orig_col, col))
738 738
    preserve = set(preserve)
739 739
    for col in cols:
740
        if col not in preserve: items.append((col, sql_gen.Col(str(col), into)))
740
        if col not in preserve:
741
            items.append((col, sql_gen.Col(str(col), into, col.srcs)))
741 742
    
742 743
    if not as_items: items = dict(items)
743 744
    return items

Also available in: Unified diff