Revision 4406
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/sql_gen.py | ||
---|---|---|
1032 | 1032 |
|
1033 | 1033 |
##### Database structure |
1034 | 1034 |
|
1035 |
def is_text_col(db, col): return db.col_info(col).type == 'text' |
|
1036 |
|
|
1035 | 1037 |
ensure_not_null_excs = (NoUnderlyingTableException, KeyError) |
1036 | 1038 |
|
1037 | 1039 |
def ensure_not_null(db, col, type_=None): |
Also available in: Unified diff
sql_gen.py: Added is_text_col()