Project

General

Profile

« Previous | Next » 

Revision 3536

sql_gen.py: Added try_mk_not_null()

View differences:

lib/sql_gen.py
1023 1023
            raise
1024 1024
    
1025 1025
    return col
1026

  
1027
def try_mk_not_null(db, value):
1028
    '''
1029
    Warning: This function does not guarantee that its result is NOT NULL.
1030
    '''
1031
    try: return ensure_not_null(db, value)
1032
    except ensure_not_null_excs: return value

Also available in: Unified diff