Remove unused SQL tokens

This commit is contained in:
Tobie Morgan Hitchcock 2016-11-10 12:35:39 +00:00
parent 4f04721b31
commit 45b06dfd9b
2 changed files with 1 additions and 9 deletions

View file

@ -113,7 +113,6 @@ const (
CONTAINSSOME CONTAINSSOME
CONTENT CONTENT
CREATE CREATE
CUSTOM
DATABASE DATABASE
DEFAULT DEFAULT
DEFINE DEFINE
@ -129,13 +128,11 @@ const (
FOR FOR
FROM FROM
GROUP GROUP
HISTORY
ID ID
IF IF
IN IN
INDEX INDEX
INFO INFO
INTO
IS IS
LET LET
LIMIT LIMIT
@ -146,7 +143,6 @@ const (
MERGE MERGE
MIN MIN
MISSING MISSING
MULTI
NAMESPACE NAMESPACE
NONE NONE
NONECONTAINEDIN NONECONTAINEDIN
@ -277,7 +273,6 @@ var tokens = [...]string{
CONTAINSSOME: "CONTAINSSOME", CONTAINSSOME: "CONTAINSSOME",
CONTENT: "CONTENT", CONTENT: "CONTENT",
CREATE: "CREATE", CREATE: "CREATE",
CUSTOM: "CUSTOM",
DATABASE: "DATABASE", DATABASE: "DATABASE",
DEFAULT: "DEFAULT", DEFAULT: "DEFAULT",
DEFINE: "DEFINE", DEFINE: "DEFINE",
@ -293,13 +288,11 @@ var tokens = [...]string{
FOR: "FOR", FOR: "FOR",
FROM: "FROM", FROM: "FROM",
GROUP: "GROUP", GROUP: "GROUP",
HISTORY: "HISTORY",
ID: "ID", ID: "ID",
IF: "IF", IF: "IF",
IN: "IN", IN: "IN",
INDEX: "INDEX", INDEX: "INDEX",
INFO: "INFO", INFO: "INFO",
INTO: "INTO",
IS: "IS", IS: "IS",
LET: "LET", LET: "LET",
LIMIT: "LIMIT", LIMIT: "LIMIT",
@ -310,7 +303,6 @@ var tokens = [...]string{
MERGE: "MERGE", MERGE: "MERGE",
MIN: "MIN", MIN: "MIN",
MISSING: "MISSING", MISSING: "MISSING",
MULTI: "MULTI",
NAMESPACE: "NAMESPACE", NAMESPACE: "NAMESPACE",
NONE: "NONE", NONE: "NONE",
NONECONTAINEDIN: "NONECONTAINEDIN", NONECONTAINEDIN: "NONECONTAINEDIN",

View file

@ -18,7 +18,7 @@ func (p *parser) parseType() (exp string, err error) {
allowed := []string{"any", "url", "uuid", "color", "email", "phone", "array", "object", "domain", "record", "string", "number", "double", "custom", "boolean", "datetime", "latitude", "longitude"} allowed := []string{"any", "url", "uuid", "color", "email", "phone", "array", "object", "domain", "record", "string", "number", "double", "custom", "boolean", "datetime", "latitude", "longitude"}
_, lit, err := p.shouldBe(IDENT, CUSTOM) _, lit, err := p.shouldBe(IDENT)
if err != nil { if err != nil {
return string(""), &ParseError{Found: lit, Expected: allowed} return string(""), &ParseError{Found: lit, Expected: allowed}
} }