I can reproduce that issue and filed a bug report https://github.com/PyMySQL/mysqlclient/discussions/740