Release Notes for MariaDB Connector/J 3.0.6
This page is part of MariaDB's Documentation.
The parent of this page is: Release Notes for MariaDB Connector/J 3.0
Topics on this page:
Overview
MariaDB Connector/J is a lightweight JDBC driver (Type 4) for building applications on top of MariaDB database products with Java 8, Java 11, and Java 17.
This release is compatible with JDBC 4.2.
MariaDB Connector/J 3.0.6 was released on 2022-06-29. This release is of General Availability (GA) maturity.
Notable Changes
The
initSqlconnection parameter has been added. (CONJ-984)The new parameter enables execution of a SQL statement upon connection creation.
For example, to execute
SET NAMES UTF8upon connection creation, the following connection string could be used:
jdbc:mariadb://DB_HOST:DB_PORT/DB?user=DB_USER&password=DB_PASSWD&initSql=SET NAMES UTF8The pipelining and bulk optimizations can now be used when
allowLocalInfileis enabled as long as the statements do not includeLOAD LOCAL INFILEcommands. Excluding statements that includeLOAD LOCAL INFILEcommands is done automatically to prevent performance regression. (CONJ-976)
Issues Fixed
PreparedStatement.getGeneratedKeys()does not return an emptyResultSetobjectwhen no keys are generated by anINSERT. (CONJ-953)When a column uses the and has a
'00:00:00'value,ResultSet.getTime()throws anArrayIndexOutOfBoundsExceptionif theuseServerPrepStmtsconnection parameter is enabled. (CONJ-975)When a column uses the ,
ResultSet.getObject()returnsByteinstead ofBoolean. (CONJ-979)When a column uses the ,
ResultSet.getObject()returnsByteSetinstead ofByte[]. (CONJ-985)When a
java.util.Dateobject is passed toPreparedStatement.setObject(), ajava.sql.SQLExceptionis thrown with the message"java.util.Date not supported type". (CONJ-980)
Installation
Upgrade
MariaDB Connector/J 3.0 has been superseded by MariaDB Connector/J 3.3, which is fully compatible with MariaDB Connector/J 3.0. For upgrade instructions:
