Release Notes for MariaDB Connector/J 3.0.6
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.
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 UTF8
The pipelining and bulk optimizations can now be used when
allowLocalInfileis enabled as long as the statements do not include
LOAD LOCAL INFILEcommands. Excluding statements that include
LOAD LOCAL INFILEcommands is done automatically to prevent performance regression. (CONJ-976)
PreparedStatement.getGeneratedKeys()does not return an empty
ResultSetobjectwhen no keys are generated by an
When a column uses the
TIMEdata type and has a
useServerPrepStmtsconnection parameter is enabled. (CONJ-975)
java.util.Dateobject is passed to
java.sql.SQLExceptionis thrown with the message
"java.util.Date not supported type". (CONJ-980)
MariaDB Connector/J 3.0 has been superseded by MariaDB Connector/J 3.1, which is fully compatible with MariaDB Connector/J 3.0. For upgrade instructions: