This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a commit to branch john-bodley-fix-mysql-adjust-engine-params
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 72ea059613fa56387107cbba664bd44ab04e6894
Author: John Bodley <[email protected]>
AuthorDate: Mon May 8 12:38:44 2023 -0700

    fix: MySQL adjust_engine_params
---
 superset/db_engine_specs/mysql.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/superset/db_engine_specs/mysql.py 
b/superset/db_engine_specs/mysql.py
index 9c5bd0034a..94304a3097 100644
--- a/superset/db_engine_specs/mysql.py
+++ b/superset/db_engine_specs/mysql.py
@@ -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=""))
 

Reply via email to