summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <nick@mysql.com>2002-10-24 03:52:51 -0600
committerunknown <nick@mysql.com>2002-10-24 03:52:51 -0600
commit47ffb583cad29523588aa43be2546c311308d5b2 (patch)
tree29880c97f58e6fd1cdf874ff73b286b853a81eb6
parent68a5932ab2b5e39858fa03934cbbe5c90042497e (diff)
downloadmariadb-git-47ffb583cad29523588aa43be2546c311308d5b2.tar.gz
added new syntax:
STOP|START SLAVE rather than SLAVE STOP|START, which is now deprecated and should be deleted in 4.1
-rw-r--r--sql/sql_yacc.yy17
1 files changed, 17 insertions, 0 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 5367bc897b3..70f9327e706 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -1276,7 +1276,24 @@ opt_to:
| EQ {}
| AS {};
+/*
+ * The first two deprecate the last two--delete the last two for 4.1 release
+ */
slave:
+ START_SYM SLAVE slave_thread_opts
+ {
+ LEX *lex=Lex;
+ lex->sql_command = SQLCOM_SLAVE_START;
+ lex->type = 0;
+ }
+ |
+ STOP_SYM SLAVE slave_thread_opts
+ {
+ LEX *lex=Lex;
+ lex->sql_command = SQLCOM_SLAVE_STOP;
+ lex->type = 0;
+ }
+ |
SLAVE START_SYM slave_thread_opts
{
LEX *lex=Lex;