Skip to content

Commit

Permalink
MDEV-11129 CREATE OR REPLACE TABLE t1 AS SELECT spfunc() crashes if s…
Browse files Browse the repository at this point in the history
…pfunc() references t1

fix a typo that broke the main.view test

followup for ef295c3
  • Loading branch information
vuvova committed May 19, 2018
1 parent ef295c3 commit cf52261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/sql_base.cc
Expand Up @@ -1373,7 +1373,7 @@ TABLE_LIST* find_dup_table(THD *thd, TABLE_LIST *table, TABLE_LIST *table_list,
DBUG_RETURN(res);

/* 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))
continue;
Expand Down

0 comments on commit cf52261

Please sign in to comment.