Bug #102225 Contribution: Fix ResultSet.getLong() throws NumberOutOfRange: Invalid inte ...
Submitted: 12 Jan 2021 0:41 Modified: 26 Jan 2021 8:36
Reporter: OCA Admin (OCA) Email Updates:
Status: Duplicate Impact on me:
None 
Category:Connector / J Severity:S2 (Serious)
Version:8.0.22 OS:Any
Assigned to: CPU Architecture:Any

[12 Jan 2021 0:41] OCA Admin
Description:
This bug tracks a contribution by Gary Gregory (Github user: garydgregory) as described in http://github.com/mysql/mysql-connector-j/pull/58

How to repeat:
See description

Suggested fix:
See contribution code attached
[12 Jan 2021 0:41] OCA Admin
Contribution submitted via Github - Fix ResultSet.getLong() throws NumberOutOfRange: Invalid integer format for valu 
(*) Contribution by Gary Gregory (Github garydgregory, mysql-connector-j/pull/58#issuecomment-757932087): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: git_patch_545483033.txt (text/plain), 1.13 KiB.

[12 Jan 2021 1:06] MySQL Verification Team
Thank you for the contribution.
[26 Jan 2021 8:35] Alexander Soklakov
Hi Gary,

Thanks for your contribution! But we have to reject it because the proposed patch breaks the JDBC API agreement, DatabaseMetaData.getProcedureColumns() / getFunctionColumns() results for CHAR_OCTET_LENGTH field are required to be integer.

We will provide a different fix under Bug#102076. This bug is marked as a duplicate of Bug#102076.