Revision 3167
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_io.py | ||
---|---|---|
141 | 141 |
new_col.name = new_typed_col.name # propagate any renaming |
142 | 142 |
|
143 | 143 |
sql.update(db, table, [(new_col, expr)], in_place=True, recover=True) |
144 |
sql.add_index(db, new_col) |
|
145 | 144 |
|
146 | 145 |
return new_col |
147 | 146 |
|
Also available in: Unified diff
sql_io.py: cast_temp_col(): Don't automatically create an index on the new column, because it doesn't necessarily need an index and the main index used for the join is now added automatically by distinct_table()