Skip to content

Commit ee78c8d

Browse files
committed
fix: add quotes around SQL query
1 parent 2c4a855 commit ee78c8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mwutil/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ def run_sql_query(
215215
config.dbtype.get_query_command(),
216216
[
217217
"-e",
218-
query
218+
# single quotes around the query so backticks don't get interpreted by the shell
219+
f"'{query}'"
219220
]
220221
)
221222

0 commit comments

Comments
 (0)