Project

General

Profile

« Previous | Next » 

Revision 3355

sql_gen.py: ensure_not_null(): Support Literal value inputs, which are passed through if not nullable

View differences:

sql_gen.py
724 724
    nullable = True
725 725
    try: typed_col = db.col_info(underlying_col(col))
726 726
    except NoUnderlyingTableException:
727
        if type_ == None: raise
727
        col = remove_col_rename(col)
728
        if isinstance(col, Literal) and not is_null(col): nullable = False
729
        elif type_ == None: raise
728 730
    else:
729 731
        if type_ == None: type_ = typed_col.type
730 732
        nullable = typed_col.nullable

Also available in: Unified diff