Project

General

Profile

« Previous | Next » 

Revision 3151

sql.py: add_index_col(): Explicitly set col_info()'s caching depending on whether col_info will be changed later by add_not_null()

View differences:

sql.py
1126 1126
    new_col = sql_gen.suffixed_col(col, suffix)
1127 1127
    
1128 1128
    # Add column
1129
    new_typed_col = sql_gen.TypedCol(new_col.name, db.col_info(col).type)
1129
    new_typed_col = sql_gen.TypedCol(new_col.name,
1130
        db.col_info(col, cacheable=nullable).type)
1131
        # if not nullable, col_info will be changed later by add_not_null()
1130 1132
    add_col(db, col.table, new_typed_col, comment='src: '+repr(col),
1131 1133
        log_level=3)
1132 1134
    new_col.name = new_typed_col.name # propagate any renaming

Also available in: Unified diff