[CONJ-975] ArrayIndexOutOfBoundsException when attempt to getTime() from ResultSet Created: 2022-05-24  Updated: 2022-06-21  Resolved: 2022-06-21

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: 3.0.4
Fix Version/s: 3.0.6

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

mariadb Ver 15.1 Distrib 10.3.34-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
mariadb-java-client version 3.0.4


Attachments: Java Source File TimeTest.java    

 Description   

An ArrayIndexOutOfBoundsException is thrown when I'm retrieving value of a column of type TIME. But the problem only occurs when the value of the column is '00:00:00' and the option useServerPrepStmts set to true.

The method ResultSet#getTime works perfectly when useServerPrepStmts = false or the value is different from '00:00:00' (for example : '02:10:00')

Here is a JUnit test class which reproduces the bug.


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