Revert "fix(safe-exec): Allow WITH queries" (#37175)

This commit is contained in:
Suraj Shetty 2026-02-18 12:51:41 +05:30 committed by GitHub
parent 44566953aa
commit c0806fabe8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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