[MDEV-31495] Prepare statement with type CURSOR_TYPE_READ_ONLY adds a lot of zero at the end of real numbers Created: 2023-06-19  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
Fix Version/s: 10.4, 10.5, 10.6, 11.0, 11.1

Type: Bug Priority: Major
Reporter: Lena Startseva Assignee: Alexander Barkov
Resolution: Unresolved Votes: 0
Labels: None

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

 Description   

When executing a MTR case:

set @arg= 1.1;
select @arg;

with cursor protocol ("--cursor-protocol"), an incorrect result is produced (a lot of zero at the end):

@arg
1.10000000000000000000000000000000000000

By default or with "--ps-portocol" it gives correct result:

@arg
1.1


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