mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.11 into 11.0
This commit is contained in:
@@ -351,24 +351,6 @@ bool mysql_derived_merge(THD *thd, LEX *lex, TABLE_LIST *derived)
|
||||
DBUG_RETURN(FALSE);
|
||||
}
|
||||
|
||||
if (dt_select->uncacheable & UNCACHEABLE_RAND)
|
||||
{
|
||||
/* There is random function => fall back to materialization. */
|
||||
cause= "Random function in the select";
|
||||
if (unlikely(thd->trace_started()))
|
||||
{
|
||||
OPT_TRACE_VIEWS_TRANSFORM(thd, trace_wrapper, trace_derived,
|
||||
derived->is_derived() ? "derived" : "view",
|
||||
derived->alias.str ? derived->alias.str : "<NULL>",
|
||||
derived->get_unit()->first_select()->select_number,
|
||||
"materialized");
|
||||
trace_derived.add("cause", cause);
|
||||
}
|
||||
derived->change_refs_to_fields();
|
||||
derived->set_materialized_derived();
|
||||
DBUG_RETURN(FALSE);
|
||||
}
|
||||
|
||||
if (derived->dt_handler)
|
||||
{
|
||||
derived->change_refs_to_fields();
|
||||
|
Reference in New Issue
Block a user