Commit 28b17313 authored by Daniel Black's avatar Daniel Black

Allow REPAIR NO_WRITE_TO_BINLOG as per serg's review

> +            if (lex->no_write_to_binlog && lex->only_view)
> +            {
> +              my_parse_error(ER(ER_SYNTAX_ERROR));
> +              MYSQL_YYABORT;

Why? REPAIR NO_WRITE_TO_BINLOG VIEW makes perfect sense to me, why did
you want to disallow it?
parent f91dafc2
......@@ -7197,11 +7197,6 @@ repair:
LEX *lex=Lex;
lex->sql_command = SQLCOM_REPAIR;
lex->no_write_to_binlog= $2;
if (lex->no_write_to_binlog && lex->only_view)
{
my_parse_error(ER(ER_SYNTAX_ERROR));
MYSQL_YYABORT;
}
lex->check_opt.init();
lex->alter_info.reset();
/* Will be overriden during execution. */
......
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