Connector/J 3.4.1 Release Notes

circle-info

Downloadarrow-up-right | Release Notes | Changelog | About MariaDB Connector/J

Release date: 17 Jul 2024

MariaDB Connector/J 3.4.1 is a Stable (GA) release.

circle-info

For an overview of MariaDB Connector/J see the About MariaDB Connector/J page

Notable Changes

Implementation of pinGlobalTxToPhysicalConnection for XA Connection

For CONJ-1189arrow-up-right

The new boolean option pinGlobalTxToPhysicalConnection, when enabled, ensures that an operation for a specific XID is routed to the same connection, to permit supporting XA START <xid> when XA END has been called. This prevent errors like

XA resource 'xaDataSource': resume for XID 'XID: <some id>' raised -5: invalid arguments were given for the XA operation

Enhanced host description

For CONJ-685arrow-up-right/CONJ-686arrow-up-right

The host description for connecting to the server has been changed from either <host>[:<portnumber>] or address=(host=<host>)[(port=<portnumber>)][(type=(master|slave))] to a more detaild host description, permitting to set localsocket or pipe, and to define a specific ssl mode depending on the host. New format:

address=(host=<host>|localSocket=<socket>|pipe=<namedpipe>)[(port=<portnumber>)][(type=(master|slave))][(sslMode=disable|trust|verify-ca|verify-full)]

Example:

This connection string now permits to use a local unix socket if available, and host 10.0.0.1 with ssl if the unix socket is not available. A detailed host description option supersedes a global option description. The previous example can also be written in the following way, defining different ssl modes for both host options:

Adding databaseTerm alias

For CONJ-1190arrow-up-right

Option useCatalogTerm has an alias databaseTerm for MySQL connector compatibility.

Bugs Fixed

  • CONJ-1181arrow-up-right The validation of a statement of the cache for prepared statements is not taking the use of different schemas into account, which can result in unexpected behavior when the same statement is executed on different schemas.

  • CONJ-1178arrow-up-right DatabaseMetaData.getImportedKeys returns a different PK_NAME value than DatabaseMetaData.getExportedKeys when using a NON UNIQUE constraint.

  • CONJ-1180arrow-up-right Slow performance of function DatabaseMeta.getExportedKeys()

  • CONJ-1185arrow-up-right Android app incompatibility, regex CANON_EQ flag is not supported on Android OS

  • CONJ-1188arrow-up-right Database meta getSQLKeywords is listing all reserved keywords, not only the restricted keywords

  • CONJ-1191arrow-up-right The Function metadata getImportedKeys is slow when a database has not been set

  • CONJ-1068arrow-up-right The Function ResultSetMetaData.getColumnTypeName() returns type VARCHAR instead of type TINYTEXT for columns of type TINYTEXT

  • CONJ-1182arrow-up-right Missing error mapping for errors XA_RBTIMEOUT, XA_RBTIMEOUT and XA_RBDEADLOCK

Changelog

For a complete list of changes made in MariaDB Connector/J 3.4.1, with links to detailed information on each push, see the changelog.

This page is: Copyright © 2025 MariaDB. All rights reserved.

spinner

Last updated

Was this helpful?