Bug #70755 largeRowSizeThreshold property value returned as String representation
Submitted: 28 Oct 2013 17:53 Modified: 28 Oct 2013 17:53
Reporter: Filipe Silva Email Updates:
Status: Verified Impact on me:
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
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.