upsert with all keys

This commit is contained in:
David McKee 2013-06-27 12:12:33 +00:00
parent e10dc36219
commit 6533fd16e9

View File

@ -118,7 +118,7 @@ class Table(object):
``types``, matching the behavior of :py:meth:`insert() <dataset.Table.insert>`.
"""
self._check_dropped()
if not len(keys):
if not len(keys) or len(keys)==len(row):
return False
clause = [(u, row.get(u)) for u in keys]
"""