mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
fix: MySQL et al. super calls (#23971)
This commit is contained in:
@@ -205,9 +205,13 @@ class MySQLEngineSpec(BaseEngineSpec, BasicParametersMixin):
|
||||
catalog: Optional[str] = None,
|
||||
schema: Optional[str] = None,
|
||||
) -> Tuple[URL, Dict[str, Any]]:
|
||||
uri, new_connect_args = super(
|
||||
MySQLEngineSpec, MySQLEngineSpec
|
||||
).adjust_engine_params(uri, connect_args, catalog, schema)
|
||||
uri, new_connect_args = super().adjust_engine_params(
|
||||
uri,
|
||||
connect_args,
|
||||
catalog,
|
||||
schema,
|
||||
)
|
||||
|
||||
if schema:
|
||||
uri = uri.set(database=parse.quote(schema, safe=""))
|
||||
|
||||
|
||||
@@ -261,9 +261,7 @@ class OcientEngineSpec(BaseEngineSpec):
|
||||
cls, cursor: Any, limit: Optional[int] = None
|
||||
) -> List[Tuple[Any, ...]]:
|
||||
try:
|
||||
rows: List[Tuple[Any, ...]] = super(OcientEngineSpec, cls).fetch_data(
|
||||
cursor, limit
|
||||
)
|
||||
rows: List[Tuple[Any, ...]] = super().fetch_data(cursor, limit)
|
||||
except Exception as exception:
|
||||
with OcientEngineSpec.query_id_mapping_lock:
|
||||
del OcientEngineSpec.query_id_mapping[
|
||||
|
||||
Reference in New Issue
Block a user