From 4f9a1fcb7323e4b1ab97f036bbea03d978800627 Mon Sep 17 00:00:00 2001 From: Peppe Landolfi Date: Thu, 15 Apr 2021 08:50:02 +0200 Subject: [PATCH 1/2] Add non-reserved keyword 'groups' --- sql.y | 1 + token.go | 1 + 2 files changed, 2 insertions(+) diff --git a/sql.y b/sql.y index efbb794..3bfe40d 100644 --- a/sql.y +++ b/sql.y @@ -3051,6 +3051,7 @@ non_reserved_keyword: | GEOMETRY | GEOMETRYCOLLECTION | GLOBAL +| GROUPS | INT | INTEGER | ISOLATION diff --git a/token.go b/token.go index 23efa77..da7cf9c 100644 --- a/token.go +++ b/token.go @@ -188,6 +188,7 @@ var keywords = map[string]int{ "grant": UNUSED, "group": GROUP, "group_concat": GROUP_CONCAT, + "groups": UNUSED, "having": HAVING, "high_priority": UNUSED, "hour_microsecond": UNUSED, From c5349bd3a1079875a3993f178a2022577504c3ab Mon Sep 17 00:00:00 2001 From: Peppe Landolfi Date: Tue, 20 Apr 2021 12:05:35 +0200 Subject: [PATCH 2/2] Add also 'system' and 'subject' --- sql.y | 2 ++ token.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sql.y b/sql.y index 3bfe40d..e99f9ef 100644 --- a/sql.y +++ b/sql.y @@ -3098,6 +3098,8 @@ non_reserved_keyword: | SPATIAL | START | STATUS +| SUBJECT +| SYSTEM | TEXT | THAN | TIME diff --git a/token.go b/token.go index da7cf9c..b205fe1 100644 --- a/token.go +++ b/token.go @@ -340,6 +340,8 @@ var keywords = map[string]int{ "stored": UNUSED, "straight_join": STRAIGHT_JOIN, "stream": STREAM, + "subject": UNUSED, + "system": UNUSED, "table": TABLE, "tables": TABLES, "terminated": UNUSED,