Project

General

Profile

« Previous | Next » 

Revision 2745

sql_gen.py: NamedValues: Change cols to Col objects with the table set to `name`

View differences:

lib/sql_gen.py
493 493
        return 'VALUES '+(', '.join(map(row_str, self.rows)))
494 494

  
495 495
def NamedValues(name, cols, values):
496
    '''
497
    @post `cols` will be changed to Col objects with the table set to `name`.
498
    '''
499
    set_cols_table(name, cols)
496 500
    return NamedTable(name, Values(values), cols)
497 501

  
498 502
##### Database structure

Also available in: Unified diff