Bug #70755 largeRowSizeThreshold property value returned as String representation
Submitted: 28 Oct 2013 17:53 Modified: 28 Feb 2022 13:19
Reporter: Filipe Silva Email Updates:
Status: Can't repeat Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version:5.1.26 OS:Any
Assigned to: Filipe Silva CPU Architecture:Any

[28 Oct 2013 17:53] Filipe Silva
Description:
ConnectionPropertiesImpl.getLargeRowSizeThreshold() returns this property value as its original string representation instead of the corresponding number of Bytes, as an integer value.

This doesn't happen with the two remaining properties that accept values using memory units: locatorFetchBufferSize and blobSendChunkSize, which values are returned as integers.

How to repeat:
Setup a connection with largeRowSizeThreshold in the connection string, cast it to ConnectionImpl or ConnectionPropertiesImpl and retrieve the property value.

Compare with other memory size properties: locatorFetchBufferSize and blobSendChunkSize.

Suggested fix:
Change 'public String getLargeRowSizeThreshold();' to 'public int getLargeRowSizeThreshold();'
[28 Oct 2013 17:53] Filipe Silva
Verified by the reporter.
[28 Feb 2022 13:19] Alexander Soklakov
Posted by developer:
 
This bug is not reproducible with the latest Connector/J 8.0.

Connector/J 5.1 series came to EOL on Feb 9th, 2021, see https://www.mysql.com/support/eol-notice.html, so this bug will not be fixed there.