Project

General

Profile

« Previous | Next » 

Revision 12152

lib/sql.py: distinct_table(): don't cache the table creation, because this prevents different distinct_tables from being created for the same input table

View differences:

sql.py
1586 1586
    new_table = sql_gen.suffixed_table(table, '_distinct')
1587 1587
    distinct_on = filter(sql_gen.is_table_col, distinct_on)
1588 1588
    
1589
    copy_table_struct(db, table, new_table)
1589
    copy_table_struct(db, table, new_table, cacheable=False)
1590 1590
    
1591 1591
    limit = None
1592 1592
    if distinct_on == []: limit = 1 # one sample row

Also available in: Unified diff