Project

General

Profile

« Previous | Next » 

Revision 5397

sql_gen.py: Added canon_type()

View differences:

lib/sql_gen.py
1056 1056

  
1057 1057
def is_text_col(db, col): return is_text_type(db.col_info(col).type)
1058 1058

  
1059
def canon_type(type_):
1060
    if type_ in text_types: return 'text'
1061
    else: return type_
1062

  
1059 1063
ensure_not_null_excs = (NoUnderlyingTableException, KeyError)
1060 1064

  
1061 1065
def ensure_not_null(db, col, type_=None):

Also available in: Unified diff