summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2015-06-03 13:59:58 +0400
committerSergey Vojtovich <svoj@mariadb.org>2015-06-05 10:44:10 +0400
commitaf2256ff72c21a63ca0d786fa161386202a0150a (patch)
tree08d74a5c4de08fbc3436a35c391bf73bbba19649 /sql/sql_yacc.yy
parent1ff423dfc089058d10945e728028f89c8b37b32f (diff)
downloadmariadb-git-af2256ff72c21a63ca0d786fa161386202a0150a.tar.gz
MDEV-7207 - ALTER VIEW does not change ALGORITM
Fixed that ALTER VIEW ALGORITHM=UNDEFINED behaved as if algorithm was not specified.
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 5b2f10b278c..ec246ae8079 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -6552,7 +6552,7 @@ alter:
my_error(ER_SP_BADSTATEMENT, MYF(0), "ALTER VIEW");
MYSQL_YYABORT;
}
- lex->create_view_algorithm= DTYPE_ALGORITHM_UNDEFINED;
+ lex->create_view_algorithm= VIEW_ALGORITHM_INHERIT;
lex->create_view_mode= VIEW_ALTER;
}
view_tail