Skip to content

Commit 3a7bbf8

Browse files
Fix id column name in Update query.
1 parent 9fc5544 commit 3a7bbf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db_wrapper/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def compose_changes(changes: Dict[str, Any]) -> sql.Composed:
152152
query = sql.SQL(
153153
'UPDATE {table} '
154154
'SET {changes} '
155-
'WHERE id = {id_value} '
155+
'WHERE _id = {id_value} '
156156
'RETURNING *;'
157157
).format(
158158
table=self._table,

0 commit comments

Comments
 (0)