Commit 0edfc739 authored by thek@adventure.(none)'s avatar thek@adventure.(none)

Bug #28846 Use of undocumented Prepared Statements crashes server

- Manual merge patch.
parent 3d7bc219
......@@ -5187,6 +5187,12 @@ alter:
*/
{
LEX *lex= Lex;
if (lex->sphead)
{
my_error(ER_SP_BADSTATEMENT, MYF(0), "ALTER VIEW");
MYSQL_YYABORT;
}
lex->create_view_algorithm= VIEW_ALGORITHM_UNDEFINED;
lex->create_view_mode= VIEW_ALTER;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment