Project

General

Profile

« Previous | Next » 

Revision 2405

sql.py: mk_update(): When running sql_gen.to_name_only_col(), check that the col's table is table

View differences:

lib/sql.py
611 611
    @return str query
612 612
    '''
613 613
    query = 'UPDATE '+sql_gen.as_Table(table).to_str(db)+'\nSET\n'
614
    query += ',\n'.join((sql_gen.to_name_only_col(col).to_str(db)+' = '
614
    query += ',\n'.join((sql_gen.to_name_only_col(col, table).to_str(db)+' = '
615 615
        +sql_gen.as_Value(new_value).to_str(db) for col, new_value in changes))
616 616
    if cond != None: query += ' WHERE '+cond.to_str(db)
617 617
    

Also available in: Unified diff