summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy5
1 files changed, 0 insertions, 5 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index d9faaf287c2..dfbc6c43399 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -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. */