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:
@ -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
|
||||
|
Reference in New Issue
Block a user