Connector/J 2.1.0 Release Notes

circle-info

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

Release date: 31 July 2017

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

circle-info

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

Notable Changes

This version is a general availability (GA) release. (2.x version need java 8+)

Notable changes and additions

CONJ-422arrow-up-right : verification of SSL Certificate Name Mismatch

When using ssl, driver check hostname against the server's identity as presented in the server's Certificate (checking alternative names or certificate CN) to prevent man-in-the-middle attack. Verification is disabled when the option "trustServerCertificate" is set.

A new option "disableSslHostnameVerification" permit to deactivate this validation.

CONJ-400arrow-up-right - Galera validation

When configuration with multi-master, Connection.isValid() will not only validate connection, but host state (@@wsrep_cluster_status). A connection to a node that is not in primary mode will return false (meaning that in pool, connection will be discarded)

CONJ-322arrow-up-right - ResultSet.update* methods implementation

ResultSet.update* methods aren't implemented statement using ResultSet.CONCUR_UPDATABLE are now able to update record. example:

CONJ-389arrow-up-right - faster batch insert

Use dedicated COM_STMT_BULK_EXECUTE protocol for batch insert when possible. (batch without Statement.RETURN_GENERATED_KEYS and streams) to have faster batch (significant only if server >= MariaDB 10.2.7).

A new option "useBulkStmts" permit to deactivate this functionality.

other evolution

Bug

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

spinner

Last updated

Was this helpful?