Commit 8ea4590a authored by Daniel Black's avatar Daniel Black Committed by Sergei Golubchik

MDEV-32583 UUID() should be treated as stochastic for the purposes of forcing query materialization

Port 9e800eda changing lex->safe_to_cache_query
to lex->uncacheable(UNCACHEABLE_RAND).
parent c5cc46f3
......@@ -150,7 +150,7 @@ class Create_func_uuid_v4 : public Create_func_arg0
{
DBUG_ENTER("Create_func_uuid_v4::create");
thd->lex->set_stmt_unsafe(LEX::BINLOG_STMT_UNSAFE_SYSTEM_FUNCTION);
thd->lex->safe_to_cache_query= 0;
thd->lex->uncacheable(UNCACHEABLE_RAND);
DBUG_RETURN(new (thd->mem_root) Item_func_uuid_v4(thd));
}
static Create_func_uuid_v4 s_singleton;
......@@ -241,4 +241,4 @@ maria_declare_plugin(type_uuid)
"1.0", // String version representation
MariaDB_PLUGIN_MATURITY_EXPERIMENTAL// Maturity(see include/mysql/plugin.h)*/
}
maria_declare_plugin_end;
\ No newline at end of file
maria_declare_plugin_end;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment