mirror of
https://github.com/apache/superset.git
synced 2026-05-11 02:45:46 +00:00
fix: calls to _get_sqla_engine (#24953)
(cherry picked from commit 6f24a4e7a8)
This commit is contained in:
committed by
Michael S. Molina
parent
5d8c65ae6f
commit
ff2ec23102
@@ -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