You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2023/05/08 19:38:51 UTC

[superset] branch john-bodley-fix-mysql-adjust-engine-params created (now 72ea059613)

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

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


      at 72ea059613 fix: MySQL adjust_engine_params

This branch includes the following new commits:

     new 72ea059613 fix: MySQL adjust_engine_params

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[superset] 01/01: fix: MySQL adjust_engine_params

Posted by jo...@apache.org.
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 <45...@users.noreply.github.com>
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=""))