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 ef295c31e3
This commit is contained in:
Sergei Golubchik 2018-05-19 15:34:17 +02:00
parent ef295c31e3
commit cf5226174b

View file

@ -1373,7 +1373,7 @@ retry:
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;