Skip to content

Commit 478f9ac

Browse files
committed
fix use of parameters arg in Cursor.execute
There is still a problem - we don't sanitize these inputs even though users would assume that we do
1 parent 4e26ebb commit 478f9ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wherobots/db/cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def execute(self, operation: str, parameters: Dict[str, Any] = None) -> None:
8181
self.__description = None
8282

8383
sql = (
84-
operation.replace("{", "{{").replace("}", "}}").format(**(parameters or {}))
84+
operation.format(**(parameters or {}))
8585
)
8686
self.__current_execution_id = self.__exec_fn(sql, self.__on_execution_result)
8787

0 commit comments

Comments
 (0)