Project

General

Profile

« Previous | Next » 

Revision 2831

sql_gen.py: ensure_not_null(): Call underlying_col() on the column to remove all renamings

View differences:

sql_gen.py
556 556

  
557 557
def ensure_not_null(db, value, ignore_unknown_type=True):
558 558
    if is_table_col(value):
559
        typed_col = db.col_info(value)
559
        typed_col = db.col_info(underlying_col(value))
560 560
        if typed_col.nullable:
561 561
            try: null = null_sentinels[typed_col.type]
562 562
            except KeyError:

Also available in: Unified diff