Revision 5057
Added by Aaron Marcuse-Kubitza about 12 years ago
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
sql.py: insert(): ignore mode: Also ignore NullValueException