Revision 2637
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
867 | 867 |
row_ct_ref[0] += cur.rowcount |
868 | 868 |
return value(cur) |
869 | 869 |
except DuplicateKeyException, e: |
870 |
return value(select(db, table, [pkey_], |
|
870 |
return value_or_none(select(db, table, [pkey_],
|
|
871 | 871 |
util.dict_subset_right_join(row, e.cols), recover=True)) |
872 | 872 |
|
873 | 873 |
def get(db, table, row, pkey, row_ct_ref=None, create=False): |
Also available in: Unified diff
sql.py: put(): DuplicateKeyException: Fixed bug where select() call needs to be surrounded by value_or_none(), not value(), because sometimes there is no entry