[CONJ-980] Permit setObject with java.util.Date parameter Created: 2022-06-02  Updated: 2022-06-24  Resolved: 2022-06-23

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

Type: Bug Priority: Major
Reporter: Chun-Liang Chen Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None
Environment:

openjdk-1.8.0.191 + MariaDB Server 10.3.15



 Description   

When I use java.sql.PreparedStatement setObject(int parameterIndex, Object x) to set java.util.Date object value,
It will throw java.sql.SQLException: Type java.util.Date not supported type at rorg.mariadb.jdbc.BasePreparedStatement.setInternalObject(BasePreparedStatement.java:1103)
Couldn't find any release note explain this behavior on version 3.0.5.

Is this a compatibility issue? because It works fine on version 2.2.3 and 2.2.5 connector.



 Comments   
Comment by Diego Dupin [ 2022-06-23 ]

added java.util.Date support.

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