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:
@ -1732,3 +1732,16 @@ RELEASE_ALL_LOCKS()
|
||||
SELECT LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA
|
||||
FROM information_schema.metadata_lock_info WHERE thread_id>0 ORDER BY TABLE_SCHEMA;
|
||||
LOCK_MODE LOCK_TYPE TABLE_SCHEMA
|
||||
#
|
||||
# MDEV-32583 UUID() should be treated as stochastic for the purposes of
|
||||
# forcing query materialization
|
||||
#
|
||||
create table t1 as WITH cte AS (SELECT UUID() as r FROM seq_1_to_10)
|
||||
SELECT r as r1, r FROM cte;
|
||||
select count(*) from t1 where r1!=r;
|
||||
count(*)
|
||||
0
|
||||
drop table t1;
|
||||
#
|
||||
# End of 10.5 tests
|
||||
#
|
||||
|
Reference in New Issue
Block a user