[CONJ-285] Statement.getGeneratedKeys() is capping to short on 1.4 series Created: 2016-04-22 Updated: 2016-04-22 Resolved: 2016-04-22 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 1.4.0, 1.4.1, 1.4.2 |
| Fix Version/s: | 1.4.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | David Delbecq | Assignee: | Diego Dupin |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Client: Linux, jdk 1.8.0_31 |
||
| Description |
|
If you use mariadb connector/j on an hibernate application using auto_increment primary key at server side and the value generated is bigger then 32767, the value returned to hibernate during call to getGeneratedKeys() is negative. Here is a pure jdbc sample code demonstrating the issue:
Generated output:
SQL creation script:
If a just change the driver version to 1.3.7, it successfully output the correct value:
This make the 1.4 driver series just unusable in this case with hibernate |
| Comments |
| Comment by David Delbecq [ 2016-04-22 ] |
|
Actually the same as issue |
| Comment by Diego Dupin [ 2016-04-22 ] |
|
OK, corrective version 1.4.3 is to be released within the hour due to this bug (but may be available only tomorrow in maven due to replication to maven central). |