mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[sql lab] allow EXPlAIN queries (#5558)
* [sql lab] allow EXPlAIN queries closes https://github.com/andialbrecht/sqlparse/issues/421 * typo
This commit is contained in:
committed by
GitHub
parent
faf35b0daa
commit
9331cf79b5
@@ -130,7 +130,7 @@ def execute_sql(
|
||||
superset_query = SupersetQuery(rendered_query)
|
||||
executed_sql = superset_query.stripped()
|
||||
SQL_MAX_ROWS = app.config.get('SQL_MAX_ROW')
|
||||
if not superset_query.is_select() and not database.allow_dml:
|
||||
if not superset_query.is_readonly() and not database.allow_dml:
|
||||
return handle_error(
|
||||
'Only `SELECT` statements are allowed against this database')
|
||||
if query.select_as_cta:
|
||||
|
||||
Reference in New Issue
Block a user