MXS-1395 Allow NAMES to be used as keyword/id

NAMES is a keyword but not a reserved one. So it must be possible
to use it as an identifier as well.
This commit is contained in:
Johan Wikman 2017-09-07 10:03:00 +03:00
parent e0c2af45c7
commit 19cc3e67e1
2 changed files with 5 additions and 1 deletions

View File

@ -604,6 +604,7 @@ columnid(A) ::= nm(X). {
/*KEY*/
/*LIKE_KW*/
MASTER /*MATCH*/ MERGE
NAMES
NO
OF OFFSET OPEN
QUICK

View File

@ -80,4 +80,7 @@ RELEASE SAVEPOINT id;
SELECT her FROM (SELECT @@server_id as her) as t WHERE her REGEXP '.*';
select * from db1.t1 union select * from db2.t2
select * from db1.t1 union select * from db2.t2;
# Names is a keyword as well
select names from t;