summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorDaniel Black <grooverdan@users.sourceforge.net>2015-04-13 21:12:23 +1000
committerDaniel Black <grooverdan@users.sourceforge.net>2015-04-13 21:12:23 +1000
commit28b173134ee1634a2489d3cef6faf2f3ea1f6ab4 (patch)
treeb587622e70a19f0b68012ab7e6fbff2f018113e6 /sql
parentf91dafc24e09ac9dbf76380d3a8b26200d051fdb (diff)
downloadmariadb-git-28b173134ee1634a2489d3cef6faf2f3ea1f6ab4.tar.gz
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?
Diffstat (limited to 'sql')
-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. */