Release Notes for MariaDB Connector/J 2.7.7

Overview

MariaDB Connector/J is an interface between Java applications and MariaDB Server. MariaDB Connector/J enables the development of the development of Java 8, Java 11, and Java 17 applications for MariaDB database products.

MariaDB Connector/J 2.7.7 was released on 2022-11-08. This release is of General Availability (GA) maturity. This release is compatible with JDBC 4.2.

Issues Fixed

  • When GSSAPI authentication occurs on Windows using WAFFLE, an error is raised. (CONJ-1021)

    • In previous releases, the following error was raised:

      java.sql.SQLNonTransientConnectionException: (conn=CONNECTION_ID) Could not connect to HOST:PORT : Connection reset
      
    • Starting with this release, when GSSAPI authentication occurs on Windows using WAFFLE, an error is not raised.

  • When the DatabaseMetaData.getImportedKeys() method is called, the result-set does not have the real key name in the PK_NAME column. (CONJ-1019)

    • In previous releases, the PK_NAME column was always null.

    • Starting with this release, the SHOW CREATE TABLE statement is used to obtain key names, and the PK_NAME column is set to the real name of the primary key.

  • When the PreparedStatement.setNull() method is called as part of a batch operation, the operation is split into multiple operations instead of being batched. (CONJ-1016)

  • When a query is canceled using the Statement.cancel() method, if another thread calls the Statement.close() method at the same time, a race condition can cause a NullPointerException to be raised. (CONJ-1011)

  • When connecting by Unix socket, socket file descriptors are not properly closed if the attempt is made to connect when the database is not online (Unix socket path does not exist or connection fails). (CONJ-1007)