[CONJ-959] Type java.time.Instant not supported type Created: 2022-04-12  Updated: 2022-04-14  Resolved: 2022-04-14

Status: Closed
Project: MariaDB Connector/J
Component/s: 2.7 compatibility
Affects Version/s: 3.0.4
Fix Version/s: 3.0.5

Type: Bug Priority: Major
Reporter: Patrick Neyer Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None
Environment:

MariaDB 10.4.18 Docker Image



 Description   

Using MariaDB Java Client version 3.0.4 (and latest Spring Data JPA/Hibernate), we get following exception:

java.sql.SQLException: Type java.time.Instant not supported type
	at org.mariadb.jdbc.BasePreparedStatement.setInternalObject(BasePreparedStatement.java:1084)
	at org.mariadb.jdbc.BasePreparedStatement.setObject(BasePreparedStatement.java:625)

underlying query:

UPDATE xyz SET creation_date = ? where foo=?

Was working with MariaDB Java Client 2.7.5 (and all older 2.x versions).


Generated at Thu Feb 08 03:19:34 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.