chore: improve DML check (#30417)

This commit is contained in:
Beto Dealmeida
2024-09-27 15:26:36 -04:00
committed by GitHub
parent 96b0bcfd78
commit cc9fd88c0d
6 changed files with 43 additions and 12 deletions

View File

@@ -137,7 +137,11 @@ class TestSqlLab(SupersetTestCase):
assert data == {
"errors": [
{
"message": "Only SELECT statements are allowed against this database.",
"message": (
"This database does not allow for DDL/DML, and the query "
"could not be parsed to confirm it is a read-only query. Please "
"contact your administrator for more assistance."
),
"error_type": SupersetErrorType.DML_NOT_ALLOWED_ERROR,
"level": ErrorLevel.ERROR,
"extra": {