Commit 95b0d768 authored by nick@mysql.com's avatar nick@mysql.com
Browse files

added new syntax:

STOP|START SLAVE
rather than SLAVE STOP|START, which is now deprecated and should be deleted in 4.1
parent dd0e3427
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -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;