Revert "fix(safe-exec): Allow WITH queries" (#37175)
This commit is contained in:
parent
44566953aa
commit
c0806fabe8
1 changed files with 1 additions and 1 deletions
|
|
@ -484,7 +484,7 @@ def check_safe_sql_query(query: str, throw: bool = True) -> bool:
|
|||
"""
|
||||
|
||||
query = query.strip().lower()
|
||||
whitelisted_statements = ("select", "explain", "with")
|
||||
whitelisted_statements = ("select", "explain")
|
||||
|
||||
if query.startswith(whitelisted_statements):
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue