1
0
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:
unknown
2013-12-18 15:59:51 +02:00
parent 3ec4296ec4
commit 57400ee681
8 changed files with 261 additions and 3 deletions

View File

@ -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();