mirror of
https://github.com/apache/superset.git
synced 2026-09-01 13:01:33 +00:00
fix(sql-lab): improved SQL statement parsing and validation (#42928)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
d570335f67
commit
584466e02b
@@ -44,6 +44,11 @@ def mock_database(mocker: MockerFixture) -> MagicMock:
|
||||
"superset.commands.database.validate_sql.DatabaseDAO"
|
||||
)
|
||||
DatabaseDAO.find_by_id.return_value = database
|
||||
# Access validation runs before template processing; it has its own
|
||||
# coverage, so keep it a no-op here.
|
||||
mocker.patch(
|
||||
"superset.commands.database.validate_sql.security_manager.raise_for_access"
|
||||
)
|
||||
return database
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user