summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-05-19 15:34:17 +0200
committerSergei Golubchik <serg@mariadb.org>2018-05-19 15:34:17 +0200
commitcf5226174bcb41611e9650ac04104a9b16f368be (patch)
treedc4be23e4f7e39cc667a1799bfd0b5c99f67ac1b
parentef295c31e3d50a99a90beccfb4deb9d9d36ac1e3 (diff)
downloadmariadb-git-cf5226174bcb41611e9650ac04104a9b16f368be.tar.gz
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 ef295c31e3d
-rw-r--r--sql/sql_base.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index bdde123f18c..dc61f396605 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -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;