Skip to content

Commit cf52261

Browse files
committed
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 ef295c3
1 parent ef295c3 commit cf52261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/sql_base.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,7 @@ TABLE_LIST* find_dup_table(THD *thd, TABLE_LIST *table, TABLE_LIST *table_list,
13731373
DBUG_RETURN(res);
13741374

13751375
/* Skip if table alias does not match. */
1376-
if (check_flag & CHECK_DUP_FOR_CREATE)
1376+
if (check_flag & CHECK_DUP_ALLOW_DIFFERENT_ALIAS)
13771377
{
13781378
if (my_strcasecmp(table_alias_charset, t_alias, res->alias))
13791379
continue;

0 commit comments

Comments
 (0)