[MDEV-31538] Cursor protocol cuts result for procedure analyse() Created: 2023-06-26  Updated: 2023-11-28

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.4, 10.5, 10.6, 10.9, 10.10, 11.0, 11.1, 11.2
Fix Version/s: 10.4, 10.5, 10.6, 11.0, 11.1, 11.2

Type: Bug Priority: Major
Reporter: Lena Startseva Assignee: Oleksandr Byelkin
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-31005 Make working cursor-protocol Stalled

 Description   

If ENUM in procedure analyse() contains more than 58 characters, it is truncated:

Testcase:

create table t1 (v varchar(128));
insert into t1 values ('1111111111111111111111111111111111111111111111111111111112345');
select * from t1 procedure analyse();
drop table t1;

Expected result:

Field_name	Min_value	Max_value	Min_length	Max_length	Empties_or_zeros	Nulls	Avg_value_or_avg_length	Std	Optimal_fieldtype
test.t1.v	1111111111111111111111111111111111111111111111111111111112345	1111111111111111111111111111111111111111111111111111111112345	61	61	0	0	61.0000	NULL	ENUM('1111111111111111111111111111111111111111111111111111111112345') NOT NULL

Actual result:

Field_name	Min_value	Max_value	Min_length	Max_length	Empties_or_zeros	Nulls	Avg_value_or_avg_length	Std	Optimal_fieldtype
test.t1.v	1111111111111111111111111111111111111111111111111111111112345	1111111111111111111111111111111111111111111111111111111112345	61	61	0	0	61.0000	NULL	ENUM('1111111111111111111111111111111111111111111111111111111112


Generated at Thu Feb 08 10:24:37 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.