]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
support utf8mb3 char encoding fully for mysqlclient, others
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 2 Oct 2021 15:53:55 +0000 (11:53 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 2 Oct 2021 17:19:14 +0000 (13:19 -0400)
commit68cb964f540c5fc2deeddb231c6ed3b8eeda7924
treeb54901c92faedbc33345e03854601695ff5f9189
parent6919a48337b3788e02389e738b5fb8a8b2d36f19
support utf8mb3 char encoding fully for mysqlclient, others

Fixes to accommodate for the MariaDB 10.6 series, including backwards
incompatible changes in both the mariadb-connector Python driver as well
as the native 10.6 client libraries that are used automatically by the
mysqlclient DBAPI.  The "utf8mb3" encoding symbol is now reported by
these client libraries when the encoding is stated as "utf8", leading to
lookup and encoding errors within the MySQL dialect that does not expect
this symbol.   Updates to both the MySQL base library to accommodate for
this utf8mb3 symbol being reported as well as to the test suite.
Thanks to Georg Richter for support.

Fixes: #7136
Fixes: #7115
Change-Id: I655d9d9868aef76037023d0c602b8a7c881780b0
(cherry picked from commit f43e65f9b557b2d110141137a0216c661ba038b4)
doc/build/changelog/unreleased_13/7115.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
test/dialect/mysql/test_dialect.py
test/dialect/mysql/test_reflection.py
test/dialect/mysql/test_types.py