MEDIUMTEXT out parameter of procedure returns wrong value

Bug #1538728 reported by C. Deniz Akyuz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Fix Released
Undecided
Unassigned

Bug Description

The MEDIUMTEXT output value of a stored procedure that reads values from an InnoDb table is different from the stored values in the table. When the values are selected from the table directly correct data is obtained. The value returned from the table inside the stored procedure is also correct. However the value is incorrect as read from outside the procedure using the OUT parameter. Using SUBSTR(value, LENGTH(value)) inside the procedure to assign to the output parameter seems to fix this issue.

This bug is detected in version 5.6.28 and not present in version 5.6.21.

Tested version info:

innodb_version 5.6.28-76.1
protocol_version 10
version 5.6.28-76.1-log
version_comment Percona Server (GPL), Release 76.1, Revision 5759e76
version_compile_machine x86_64
version_compile_os debian-linux-gnu

Steps to recreate the bug are in the attached file.

Revision history for this message
C. Deniz Akyuz (cdakyuz) wrote :
description: updated
Revision history for this message
Kenn Takara (kenn-takara) wrote :

Bug fixed upstream (5.6/5.7)
=======================

Bug #22232332: SAVING TEXT FIELD TO TEXT VARIABLE IN A
PROCEDURE RESULTS IN GARBAGE BYTES

Commit: 863f7cebd79e76f90bd8f1e3e0c1a1de5fe77d07 [863f7ce]
Parents: 3d1306f7b7
Author: Sreeharsha Ramanavarapu <email address hidden>
Date: January 7, 2016 at 3:16:59 PM HST

Changed in percona-xtradb-cluster:
status: New → Fix Released
status: Fix Released → Fix Committed
Changed in percona-xtradb-cluster:
status: Fix Committed → Fix Released
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-506

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.