Project

General

Profile

« Previous | Next » 

Revision 3110

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.

View differences:

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