Suggested fix:
{noformat} diff --git a/sql/sql_view.cc b/sql/sql_view.cc index 6e58564262c..cdb65a79660 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -426,11 +426,12 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
if ((res= create_view_precheck(thd, tables, view, mode))) goto err; - WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL)
lex->link_first_table_back(view, link_to_local); view->open_type= OT_BASE_ONLY;
+ WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL) + if (check_dependencies_in_with_clauses(lex->with_clauses_list)) { res= TRUE; {noformat}
Suggested fix:
{noformat} .cdb65a79660 100644 view(THD *thd, TABLE_LIST *views,
diff --git a/sql/sql_view.cc b/sql/sql_view.cc
index 6e58564262c.
--- a/sql/sql_view.cc
+++ b/sql/sql_view.cc
@@ -426,11 +426,12 @@ bool mysql_create_
if ((res= create_ view_precheck( thd, tables, view, mode))) ISOLATION_ BEGIN(WSREP_ MYSQL_DB, NULL, NULL)
goto err;
- WSREP_TO_
lex- >link_first_ table_back( view, link_to_local);
view->open_type= OT_BASE_ONLY;
+ WSREP_TO_ ISOLATION_ BEGIN(WSREP_ MYSQL_DB, NULL, NULL) dependencies_ in_with_ clauses( lex->with_ clauses_ list))
+
if (check_
{
res= TRUE;
{noformat}