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.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.