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.
This commit is contained in:
parent
05480a8863
commit
de534f2bc1
@ -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 {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user