summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/api.py b/api.py
index 087c2f6..e58156e 100644
--- a/api.py
+++ b/api.py
@@ -204,7 +204,8 @@ class Processor(joblib.worker.Worker):
return objid, objlmcd
async def _into(self, conn, data, table,
- conflict="DO NOTHING RETURNING api_id"):
+ conflict="DO UPDATE SET (\"{1}\") = ({2}) " +
+ "RETURNING api_id"):
"""Insert a named tuple into a table.
Return the object id."""
items = list(data.items())