[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 |
||
| Attachments: |
|
| 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. |