Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
fix: MySQL et al. super calls (apache#23971)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2af76fc)
  • Loading branch information
john-bodley committed May 8, 2023
1 parent 63d8015 commit c0cdc22
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions superset/db_engine_specs/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,13 @@ def adjust_engine_params(
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=""))

Expand Down

0 comments on commit c0cdc22

Please sign in to comment.