Project

General

Profile

« Previous | Next » 

Revision 2317

sql.py: put_table(): Fixed bug where only string columns were being included in the distinct_on, but columns are now always sql_gen.Col instances

View differences:

lib/sql.py
780 780
        # Prepare to insert new rows
781 781
        if has_joins:
782 782
            insert_args = dict()
783
            distinct_on = filter(util.is_str, join_cols.values())
783
            distinct_on = [v.to_Col() for v in join_cols.values()]
784 784
            if not filter_join_added:
785 785
                insert_joins.append(sql_gen.Join(out_table, join_cols,
786 786
                    sql_gen.filter_out))

Also available in: Unified diff