Revision 3110
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_io.py | ||
---|---|---|
127 | 127 |
sql.add_col(db, table, new_typed_col, comment='src: '+repr(col)) |
128 | 128 |
new_col.name = new_typed_col.name # propagate any renaming |
129 | 129 |
|
130 |
sql.update(db, table, [(new_col, expr)], in_place=True, cacheable=True)
|
|
130 |
sql.update(db, table, [(new_col, expr)], in_place=True, recover=True)
|
|
131 | 131 |
sql.add_index(db, new_col) |
132 | 132 |
|
133 | 133 |
return new_col |
Also available in: Unified diff
sql_io.py: cast_temp_col(): Run sql.update() in recover mode in case expr produces errors. Don't cache sql.update() in case this function will be called again after error recovery.