1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-32583 UUID() should be treated as stochastic for the purposes of forcing query materialization

RAND() and UUID() are treated differently with respect to subquery
materialization both should be marked as uncacheable, forcing materialization.
Altered Create_func_uuid(_short)::create_builder().
Added comment in header about UNCACHEABLE_RAND meaning also unmergeable.
This commit is contained in:
Rex
2024-03-19 08:50:19 +12:00
parent 5979dcf95b
commit 9e800eda86
5 changed files with 43 additions and 3 deletions

View File

@ -316,7 +316,10 @@
*/
/* This subquery has fields from outer query (put by user) */
#define UNCACHEABLE_DEPENDENT_GENERATED 1
/* This subquery contains functions with random result */
/*
This subquery contains functions with random result.
Something that is uncacheable is by default unmergeable.
*/
#define UNCACHEABLE_RAND 2
/* This subquery contains functions with side effect */
#define UNCACHEABLE_SIDEEFFECT 4