[CONJ-282] trouble with 'year(4)' type Created: 2016-04-18 Updated: 2016-04-19 Resolved: 2016-04-19 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 1.4.0, 1.3.6, 1.3.7, 1.4.1, 1.4.2 |
| Fix Version/s: | 1.4.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Patrice Duroux | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
MySQL server 5.6.28 |
||
| Description |
|
Hi, Since Connector/J version 1.3.6 (everything working well with 1.3.4 and 1.3.5) and Here is the top of the exception stack: I suspect then that the rawdata is parsed as a full date value and then failing to Regards |
| Comments |
| Comment by Diego Dupin [ 2016-04-19 ] | ||||||||||||||||
|
resulset.getObject() and resultset.getDate() is throwing ArrayIndexOutOfBoundsException for a YEAR(2) / YEAR(4) field when using prepareStatement with binary protocol (default). Correction is available using maven with :
Will be release in 1.4.3. Corrected with commit https://github.com/MariaDB/mariadb-connector-j/commit/2dca31e7fa1fe5de56376c906dcbd5eb110fb7da |