Commit cf522617 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-11129 CREATE OR REPLACE TABLE t1 AS SELECT spfunc() crashes if spfunc() references t1

fix a typo that broke the main.view test

followup for ef295c31
parent ef295c31
...@@ -1373,7 +1373,7 @@ TABLE_LIST* find_dup_table(THD *thd, TABLE_LIST *table, TABLE_LIST *table_list, ...@@ -1373,7 +1373,7 @@ TABLE_LIST* find_dup_table(THD *thd, TABLE_LIST *table, TABLE_LIST *table_list,
DBUG_RETURN(res); DBUG_RETURN(res);
/* Skip if table alias does not match. */ /* Skip if table alias does not match. */
if (check_flag & CHECK_DUP_FOR_CREATE) if (check_flag & CHECK_DUP_ALLOW_DIFFERENT_ALIAS)
{ {
if (my_strcasecmp(table_alias_charset, t_alias, res->alias)) if (my_strcasecmp(table_alias_charset, t_alias, res->alias))
continue; continue;
......
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