Project

General

Profile

« Previous | Next » 

Revision 5334

sql_gen.py: Added is_text_type()

View differences:

lib/sql_gen.py
1051 1051

  
1052 1052
text_types = set(['character varying', 'text'])
1053 1053

  
1054
def is_text_type(type_): return type_ in text_types
1055

  
1054 1056
def is_text_col(db, col): return db.col_info(col).type in text_types
1055 1057

  
1056 1058
ensure_not_null_excs = (NoUnderlyingTableException, KeyError)

Also available in: Unified diff