Bug #77954 Extra character getting printed for MYSQL_TYPE_VARCHAR when metadata is 256
Submitted: 6 Aug 2015 2:16 Modified: 12 Nov 2015 13:48
Reporter: NEHA KUMARI Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Utilities: Binlog Events Severity:S3 (Non-critical)
Version:1.0.0 OS:Any
Assigned to: CPU Architecture:Any

[6 Aug 2015 2:16] NEHA KUMARI
Description:
When the value of metadata is 256 then the length of variable to store metadata should be 2 bytes, but in current scenario its 1, which results in wrong decoding of MYSQL_TYPE_VARCHAR when metadata value is 256.

How to repeat:
Fire a query with type MYSQL_TYPE_VARCHAR and metadata value as 256, one extra character will be printed in the beginning of the resulting string.