Project

General

Profile

« Previous | Next » 

Revision 4406

sql_gen.py: Added is_text_col()

View differences:

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