[CONJ-954] Type java.time.OffsetDateTime not supported type Created: 2022-04-06  Updated: 2022-05-13  Resolved: 2022-05-13

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

Type: Bug Priority: Major
Reporter: Francesco Chicchiriccò Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None
Environment:

MariaDB 10.8 Docker image



 Description   

When using MariaDB JDBC 3.0.4 I am getting the following exception:

java.sql.SQLException: Type java.time.OffsetDateTime not supported type
        at org.mariadb.jdbc.BasePreparedStatement.setInternalObject(BasePreparedStatement.java:1084) ~[mariadb-java-client-3.0.4.jar:?]
        at org.mariadb.jdbc.BasePreparedStatement.setObject(BasePreparedStatement.java:625) ~[mariadb-java-client-3.0.4.jar:?]

The same code works with MariaDB JDBC 2.7.5.



 Comments   
Comment by Francesco Chicchiriccò [ 2022-04-18 ]

Thanks for the fix.
I can see that 3.0.5-SNAPSHOT artifacts were published last time on Apr 11th, so I guess the fix is not yet available there: correct?

Comment by Diego Dupin [ 2022-05-13 ]

Fix is now available in 3.0.5-SNAPSHOT.
release will be out in one or 2 weeks

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