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
CONTENT
CREATE
CUSTOM
DATABASE
DEFAULT
DEFINE
@ -129,13 +128,11 @@ const (
FOR
FROM
GROUP
HISTORY
ID
IF
IN
INDEX
INFO
INTO
IS
LET
LIMIT
@ -146,7 +143,6 @@ const (
MERGE
MIN
MISSING
MULTI
NAMESPACE
NONE
NONECONTAINEDIN
@ -277,7 +273,6 @@ var tokens = [...]string{
CONTAINSSOME: "CONTAINSSOME",
CONTENT: "CONTENT",
CREATE: "CREATE",
CUSTOM: "CUSTOM",
DATABASE: "DATABASE",
DEFAULT: "DEFAULT",
DEFINE: "DEFINE",
@ -293,13 +288,11 @@ var tokens = [...]string{
FOR: "FOR",
FROM: "FROM",
GROUP: "GROUP",
HISTORY: "HISTORY",
ID: "ID",
IF: "IF",
IN: "IN",
INDEX: "INDEX",
INFO: "INFO",
INTO: "INTO",
IS: "IS",
LET: "LET",
LIMIT: "LIMIT",
@ -310,7 +303,6 @@ var tokens = [...]string{
MERGE: "MERGE",
MIN: "MIN",
MISSING: "MISSING",
MULTI: "MULTI",
NAMESPACE: "NAMESPACE",
NONE: "NONE",
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"}
_, lit, err := p.shouldBe(IDENT, CUSTOM)
_, lit, err := p.shouldBe(IDENT)
if err != nil {
return string(""), &ParseError{Found: lit, Expected: allowed}
}