From de534f2bc1712cbae314599ff4a230fb2fcecc39 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 29 Feb 2008 12:21:19 +0300 Subject: [PATCH] Fix for Bug#31947: Declare with a reserved word succeeded. READ_ONLY token was accidentally placed into wrong place ('ident' rule). The proper place is in the 'keyword_sp' rule. The manual should be re-generated after this patch, because the manual depends on the 'keyword_sp' rule. sql/sql_yacc.yy: Move READ_ONLY token to the 'keyword_sp' rule. --- sql/sql_yacc.yy | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 108cf5e9ab3..1bd90e74f47 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -10312,12 +10312,6 @@ TEXT_STRING_filesystem: ident: IDENT_sys { $$=$1; } - | READ_ONLY_SYM - { - THD *thd= YYTHD; - $$.str= thd->strmake("read_only",9); - $$.length= 9; - } | keyword { THD *thd= YYTHD; @@ -10622,6 +10616,7 @@ keyword_sp: | QUARTER_SYM {} | QUERY_SYM {} | QUICK {} + | READ_ONLY_SYM {} | REBUILD_SYM {} | RECOVER_SYM {} | REDO_BUFFER_SIZE_SYM {}