mirror of
https://github.com/apache/superset.git
synced 2026-04-17 15:15:20 +00:00
fix: calls to _get_sqla_engine (#24953)
This commit is contained in:
@@ -113,9 +113,10 @@ class BaseTestChartDataApi(SupersetTestCase):
|
||||
|
||||
def quote_name(self, name: str):
|
||||
if get_main_database().backend in {"presto", "hive"}:
|
||||
return get_example_database().inspector.engine.dialect.identifier_preparer.quote_identifier(
|
||||
name
|
||||
)
|
||||
with get_example_database().get_inspector_with_context() as inspector: # E: Ne
|
||||
return inspector.engine.dialect.identifier_preparer.quote_identifier(
|
||||
name
|
||||
)
|
||||
return name
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user