Revision 5094
Added by Aaron Marcuse-Kubitza about 12 years ago
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
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