diff options
author | unknown <anozdrin/alik@quad.> | 2008-02-29 12:21:19 +0300 |
---|---|---|
committer | unknown <anozdrin/alik@quad.> | 2008-02-29 12:21:19 +0300 |
commit | de534f2bc1712cbae314599ff4a230fb2fcecc39 (patch) | |
tree | 249dd6fdd5ae6d65117b87e33ad7758538ca6825 | |
parent | 05480a88636a16119fe2ac658869a5dc415d88af (diff) | |
download | mariadb-git-de534f2bc1712cbae314599ff4a230fb2fcecc39.tar.gz |
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.
-rw-r--r-- | sql/sql_yacc.yy | 7 |
1 files changed, 1 insertions, 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 {} |