ericpp commented on a change in pull request #14869:
URL: https://github.com/apache/airflow/pull/14869#discussion_r602418397



##########
File path: airflow/providers/mysql/hooks/mysql.py
##########
@@ -63,7 +66,10 @@ def get_autocommit(self, conn: Connection) -> bool:  # noqa: 
D403
         :return: connection autocommit setting
         :rtype: bool
         """
-        return conn.get_autocommit()
+        if hasattr(conn, 'get_autocommit'):  # mysqlclient

Review comment:
       Moved to docblock




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to