[MDEV-31729] Cursor protocol returns wrong result for TRUNCATE(X,D) Created: 2023-07-18  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: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-28660 TRUNCATE(X,D) returns incorrect resul... Open
relates to MDEV-31005 Make working cursor-protocol Stalled

 Description   

Testcase (run MTR test with --cursor-protocol):

create view v1 as select truncate(99999999999999999999999999999999999999,49);
select * from v1;
drop view v1;

Expected result:

truncate(99999999999999999999999999999999999999,49)
99999999999999999999999999999999999999.000000000000000000000000000000000000

Actual result:

truncate(99999999999999999999999999999999999999,49)
999999999999999999999999999.99999999999999999999999999999999999999


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