[CONJ-724] ResultSet#getTime(int, java.util.Calendar) ignores the Calendar parameter Created: 2019-08-26  Updated: 2019-09-13  Resolved: 2019-09-12

Status: Closed
Project: MariaDB Connector/J
Component/s: JDBC 4.2 compatibility
Affects Version/s: 2.2.3, 2.4.2
Fix Version/s: 2.4.4

Type: Bug Priority: Major
Reporter: Yoann Rodiere Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

Calling java.sql.ResultSet#getTime(int, java.util.Calendar) with a non-null calendar parameter results in the Calendar being ignored and some other timezone being used to retrieve the time. I don't know which timezone is used exactly, maybe the JVM timezone or the server timezone, but one thing is fore sure: it's not the one of the provided calendar.

This may look similar to CONJ-349 at first look, but I this other ticket relates to a much older version of Connector/J and, I think, a different problem.

I will submit a PR with test and fix soon.


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