mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-5414: RAND() in a subselect : different behavior in MariaDB and MySQL
Materialization forced in case if rand() used in view or derived table to avoud several calls of rand for gting value of a field. Fixed set variable uncachable flag from - it shouldbe a side effect not a random value.
This commit is contained in:
@ -2002,6 +2002,7 @@ typedef struct st_lex : public Query_tables_list
|
||||
sl->uncacheable|= cause;
|
||||
un->uncacheable|= cause;
|
||||
}
|
||||
select_lex.uncacheable|= cause;
|
||||
}
|
||||
void set_trg_event_type_for_tables();
|
||||
|
||||
|
Reference in New Issue
Block a user