Project

General

Profile

« Previous | Next » 

Revision 2834

sql_gen.py: NamedValues: Call set_cols_table() with the created table, not just the name, so that is_underlying_table() works properly

View differences:

lib/sql_gen.py
534 534
    '''
535 535
    @post `cols` will be changed to Col objects with the table set to `name`.
536 536
    '''
537
    set_cols_table(name, cols)
538
    return NamedTable(name, Values(values), cols)
537
    table = NamedTable(name, Values(values), cols)
538
    set_cols_table(table, cols)
539
    return table
539 540

  
540 541
##### Database structure
541 542

  

Also available in: Unified diff