Version 26.7.0 is a new GA release of MySQL Connector/J. MySQL Connector/J 26.7.0 supersedes 9.7 and is recommended for use on production systems. This release can be used against MySQL Server version 8.4 and later. It supports the Java Database Connectivity (JDBC) 4.2 API, and implements the X DevAPI.
Fixed an issue relating to loading local data. (Bug #39449361)
Fixed an issue relating to X Protocol connections. (Bug #39328305)
-
If LOAD DATA LOCAL INFILE failed while reading the local source data, the client could exit without properly finishing the upload exchange with the server. In that situation, the original failure was reported to the application, but the server could remain waiting for the end of the transfer, which could leave the connection out of sync for the next command.
As of this release, the driver completes the cleanup path before returning the error. When a read-related failure happens, the driver now sends the end-of-file marker needed to finish the upload protocol and clears the server response as best effort, while still returning the original exception to the user. The handling was also adjusted so failures while closing the local input stream do not prevent that cleanup from happening. (Bug #120227, Bug #39204043)
-
Fixed an issue where ResultSet N-character methods, such as getNString(), could fail when the connection characterEncoding used a valid UTF-8 alias such as utf8, UTF8, or mixed-case variants instead of exactly UTF-8.
Our thanks to Rahman Rejepov for the contribution. (Bug #120096, Bug #39125648)