Adopted function annotation enforcement by
mypy, which makes themysqlxmodule compliant with PEP 8. (WL #15401)Added logger functionality to configure the logging system, which by default outputs severity level
WARNINGand higher tosys.stderr. (WL #15435)Added a
oci_config_profileconnection option to define a profile set inoci_config_file; the default value isDEFAULT. These options are for theauthentication_oci_clientplugin used with the Oracle Cloud Infrastructure (OCI) to support ephemeral key pairs and security tokens. (WL #15483)On Linux and macOS, added a script that builds and runs a Docker container to execute the test suite. Only a running MySQL server is needed to run this test suite; see
CONTRIBUTING.rstfor./tests/docker/runner.shusage information. (WL #15528)
The C extension set
mysql_native_passwordas the default authentication method; now the default set by MySQL,caching_sha2_password, is used instead. (Bug #35233031)It was possible for the exception closing an invalid connection to be interpreted as a
Bad Messageby the server; now the socket is closed instead of callingCMD_QUIT. (Bug #35015758)A deprecation warning is now raised if any of the commands
COM_FIELD_LIST,COM_REFRESH,COM_SHUTDOWN,COM_PROCESS_INFO, orCOM_PROCESS_KILLare used, since all of these are now deprecated by MySQL Server. (Bug #27489972)-
The prepared statement cursor lacked support for the following options:
dictionary,named_tuple, andraw. (Bug #27359063)References: See also: Bug #23339387.
-
The C extension truncated bytes that contained a
\x00byte when usingNO_BACKSLASH_ESCAPESmode in MySQL.As a workaround, use
converter_class=MySQLConverteras a connection option. (Bug #109651, Bug #34984850) On macOS with the C extension, an exception was raised when using
authentication_oci_client. In addition, some related libraries were not bundled, such aslibfido2. (Bug #109430, Bug #34910625)Executing
executemany()withinsertstatements that usedON DUPLICATE KEY UPDATEdemonstrated poor performance; this was improved by fixing the associated regular expressions that match INSERT statements. (Bug #99575, Bug #31355895)Added the
SESSION_TRACKconstant to replaceSESION_TRACK, which is now deprecated. (Bug #96347, Bug #30103652)Increased the data chunk size from 8 KB to 128 KB to improve performance for large inputs. (Bug #77789, Bug #21476351)