]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
disable mysql/connector-python, again
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 21 Apr 2025 13:44:40 +0000 (09:44 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 21 Apr 2025 14:22:02 +0000 (10:22 -0400)
Just as we got this driver "working", a new regression is introduced
in version 9.3.0 which prevents basic binary string persistence [1].
I would say we need to leave this driver off for another few years
until something changes with its upstream maintenance.

[1] https://bugs.mysql.com/bug.php?id=118025

Change-Id: If876f63ebb9a6f7dfa0b316df044afa469a154f2

lib/sqlalchemy/dialects/mysql/mysqlconnector.py
tox.ini

index 71ac58601c19e250342d0eb6ca04771f193a2563..faeae16abd58b915504f2ab8920ac2da5f8d3764 100644 (file)
@@ -22,11 +22,19 @@ degree which the driver is functional.   There are still ongoing issues
 with features such as server side cursors which remain disabled until
 upstream issues are repaired.
 
+.. warning:: The MySQL Connector/Python driver published by Oracle is subject
+   to frequent, major regressions of essential functionality such as being able
+   to correctly persist simple binary strings which indicate it is not well
+   tested.  The SQLAlchemy project is not able to maintain this dialect fully as
+   regressions in the driver prevent it from being included in continuous
+   integration.
+
 .. versionchanged:: 2.0.39
 
     The MySQL Connector/Python dialect has been updated to support the
     latest version of this DBAPI.   Previously, MySQL Connector/Python
-    was not fully supported.
+    was not fully supported.  However, support remains limited due to ongoing
+    regressions introduced in this driver.
 
 Connecting to MariaDB with MySQL Connector/Python
 --------------------------------------------------
diff --git a/tox.ini b/tox.ini
index db5245cca32343b3890b3d20cd7913a2ad5cf6ee..caadcedb5e9ec845ccb0dd5834ae2ee0c56a6aef 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -38,7 +38,6 @@ extras=
      mysql: mysql
      mysql: pymysql
      mysql: mariadb_connector
-     mysql: mysql_connector
 
      oracle: oracle
      oracle: oracle_oracledb
@@ -143,8 +142,8 @@ setenv=
     memusage: WORKERS={env:TOX_WORKERS:-n2}
 
     mysql: MYSQL={env:TOX_MYSQL:--db mysql}
-    mysql: EXTRA_MYSQL_DRIVERS={env:EXTRA_MYSQL_DRIVERS:--dbdriver mysqldb --dbdriver pymysql --dbdriver asyncmy --dbdriver aiomysql --dbdriver mariadbconnector --dbdriver mysqlconnector}
-    mysql-nogreenlet: EXTRA_MYSQL_DRIVERS={env:EXTRA_MYSQL_DRIVERS:--dbdriver mysqldb --dbdriver pymysql --dbdriver mariadbconnector --dbdriver mysqlconnector}
+    mysql: EXTRA_MYSQL_DRIVERS={env:EXTRA_MYSQL_DRIVERS:--dbdriver mysqldb --dbdriver pymysql --dbdriver asyncmy --dbdriver aiomysql --dbdriver mariadbconnector}
+    mysql-nogreenlet: EXTRA_MYSQL_DRIVERS={env:EXTRA_MYSQL_DRIVERS:--dbdriver mysqldb --dbdriver pymysql --dbdriver mariadbconnector}
 
     mssql: MSSQL={env:TOX_MSSQL:--db mssql}