Project

General

Profile

« Previous | Next » 

Revision 2955

sql.py: cast_temp_col(): Add an index on the created column

View differences:

lib/sql.py
1040 1040
    expr = cast_(col)
1041 1041
    add_col(db, table, sql_gen.TypedCol(new_col.name, type_))
1042 1042
    update(db, table, [(new_col, expr)])
1043
    add_index(db, new_col)
1043 1044
    
1044 1045
    return new_col
1045 1046

  

Also available in: Unified diff