Revision 5335
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
1053 | 1053 |
|
1054 | 1054 |
def is_text_type(type_): return type_ in text_types |
1055 | 1055 |
|
1056 |
def is_text_col(db, col): return db.col_info(col).type in text_types
|
|
1056 |
def is_text_col(db, col): return is_text_type(db.col_info(col).type)
|
|
1057 | 1057 |
|
1058 | 1058 |
ensure_not_null_excs = (NoUnderlyingTableException, KeyError) |
1059 | 1059 |
|
Also available in: Unified diff
sql_gen.py: is_text_col(): Use new is_text_type()