Revision 3003
Added by Aaron Marcuse-Kubitza over 12 years ago
sql.py | ||
---|---|---|
1016 | 1016 |
add_index(db, new_col) |
1017 | 1017 |
|
1018 | 1018 |
col.table.index_cols[col.name] = new_col |
1019 |
import sys;print >>sys.stderr,'>>>>1'+repr(col.table)+repr(col.table.index_cols) |
|
1020 | 1019 |
|
1021 | 1020 |
def ensure_not_null(db, col): |
1022 | 1021 |
'''For params, see sql_gen.ensure_not_null()''' |
Also available in: Unified diff
sql.py: add_index(): Fixed bug where expr could not be deep-copied until ensure_not_null() had been run on it, because ensure_not_null() modifies the index_cols of the table and this needs to be modified on the original table