Skip to content

Commit 5b83149

Browse files
committed
Fix subsequent update escape
1 parent 0172e42 commit 5b83149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pathtraits/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def put(self, table, condition=None, update=True, **kwargs):
212212

213213
if update and self.get(table, condition=condition, **kwargs):
214214
# update
215-
values = " , ".join([f"{k}={v}" for (k, v) in escaped_kwargs.items()])
215+
values = " , ".join([f"[{k}]={v}" for (k, v) in escaped_kwargs.items()])
216216
if condition:
217217
update_query = f"UPDATE [{table}] SET {values} WHERE {condition};"
218218
else:

0 commit comments

Comments
 (0)