[MDEV-29186] Query cache makes virtual column function RAND() non-random Created: 2022-07-28  Updated: 2023-11-28

Status: Stalled
Project: MariaDB Server
Component/s: Query Cache, Virtual Columns
Affects Version/s: 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10
Fix Version/s: 10.4, 10.5, 10.6

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Unresolved Votes: 0
Labels: None


 Description   

10.3 02e85aea

set global query_cache_type=1;
set query_cache_type=1;
create table t (a int, b float as (rand()));
insert into t (a) values (1);
select * from t;
a	b
1	0.181048
select * from t;
a	b
1	0.181048
set query_cache_type=0;
select * from t;
a	b
1	0.437779



 Comments   
Comment by Elena Stepanova [ 2022-07-28 ]

If random_bytes from MDEV-25704 is allowed as a virtual column function, it will also be affected.

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