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
initSql
connection parameter has been added. (CONJ-984)The new parameter enables execution of a SQL statement upon connection creation.
For example, to execute
SET NAMES UTF8
upon 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 UTF8
The pipelining and bulk optimizations can now be used when
allowLocalInfile
is enabled as long as the statements do not includeLOAD LOCAL INFILE
commands. Excluding statements that includeLOAD LOCAL INFILE
commands is done automatically to prevent performance regression. (CONJ-976)
Issues Fixed
PreparedStatement.getGeneratedKeys()
does not return an emptyResultSetobject
when no keys are generated by anINSERT
. (CONJ-953)When a column uses the
and has a'00:00:00'
value,ResultSet.getTime()
throws anArrayIndexOutOfBoundsException
if theuseServerPrepStmts
connection parameter is enabled. (CONJ-975)When a column uses the
,ResultSet.getObject()
returnsByte
instead ofBoolean
. (CONJ-979)When a column uses the
,ResultSet.getObject()
returnsByteSet
instead ofByte[]
. (CONJ-985)When a
java.util.Date
object is passed toPreparedStatement.setObject()
, ajava.sql.SQLException
is 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: