[CONJ-923] Issue with version 3.0.3 (hibernate 5.6.5.Final) Insert ID Overflow Created: 2022-02-02  Updated: 2022-02-14  Resolved: 2022-02-14

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

Type: Bug Priority: Critical
Reporter: Adam Carnine Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

I have database relationships between tables with large numbers of rows (> 2.5 billion).

The id/linked columns are defined as such:
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT

In version 2.7.5 of the driver the id is correctly returned as a 64 bit value, for example, 2384437530.

In version 3.0.3 of the driver the id is incorrectly return as a 32 bit value, same from above, -1910529766

Please let me know if I can assist with further reproduction of this issue.



 Comments   
Comment by Diego Dupin [ 2022-02-14 ]

correction done with https://github.com/mariadb-corporation/mariadb-connector-j/commit/c999c2ec1d396d947bc30515aefed00e65937c18

Problem did concern value if > to unsigned 32 bytes.

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