Project

General

Profile

« Previous | Next » 

Revision 5057

sql.py: insert(): ignore mode: Also ignore NullValueException

View differences:

lib/sql.py
881 881
    else: query = sql_gen.Values(row).to_str(db)
882 882
    
883 883
    try: return insert_select(db, table, cols, query, *args, **kw_args)
884
    except DuplicateKeyException:
884
    except (DuplicateKeyException, NullValueException):
885 885
        if not ignore: raise
886 886

  
887 887
def mk_update(db, table, changes=None, cond=None, in_place=False,

Also available in: Unified diff