Project

General

Profile

« Previous | Next » 

Revision 5094

sql.py: insert(): ignore optimization: Fixed bug where needed to run insert_select() recoverably so that the aborted transaction is rolled back after a DuplicateKeyException or NullValueException

View differences:

sql.py
870 870
def insert(db, table, row, *args, **kw_args):
871 871
    '''For params, see insert_select()'''
872 872
    ignore = kw_args.pop('ignore', False)
873
    if ignore: kw_args.setdefault('recover', True)
873 874
    
874 875
    if lists.is_seq(row): cols = None
875 876
    else:

Also available in: Unified diff