Commit 7debdee8 authored by unknown's avatar unknown
Browse files

Fix small glitch during parsing of ALTER EVENT xyz

with only COMMENT clause. Strangely it has manifestated itself
only on two platforms. This is a fix for bug#23423 
"Syntax error for "ALTER EVENT ... COMMENT ..." on just two platforms"


sql/sql_yacc.yy:
  if COMMENT is used mark it as used.
  There was a missing setting to 1 of $$. If COMMENT
  was used in combinations with other clauses then it
  was passing.
parent 4681c066
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1421,6 +1421,7 @@ opt_ev_comment: /* empty */ { $$= 0; }
        | COMMENT_SYM TEXT_STRING_sys
          {
            Lex->comment= Lex->event_parse_data->comment= $2;
            $$= 1;
          }
      ;