Bug #68608 | UpdatableResultSet does not properly handle unsigned primary key | ||
---|---|---|---|
Submitted: | 7 Mar 2013 22:47 | Modified: | 21 Dec 2022 17:23 |
Reporter: | Bas Verhoeven | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 5.1.23 | OS: | Any |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[7 Mar 2013 22:47]
Bas Verhoeven
[19 Apr 2013 7:19]
Alexander Soklakov
Hi Bas, Thanks for your report. Verified as described.
[21 Dec 2022 17:23]
Daniel So
Posted by developer: Added the following entry to the C/J 8.0.32 changelog: "Because the value of a MySQL unsigned INTEGER can be larger than what a Java int can hold, a MySQL unsigned INTEGER must be handled as a Java long. However, the rule was not followed by UpdatableResultSet and a couple of ValueEncoders in Connector/J , causing invalid numeric conversions when the unsigned integers were very large. "