Enable WITH aswell as TO in RELATE clause

This commit is contained in:
Tobie Morgan Hitchcock 2017-04-28 17:07:38 +01:00
parent 6bfb30a3b4
commit dacf7b954b
2 changed files with 3 additions and 1 deletions

View file

@ -34,7 +34,7 @@ func (p *parser) parseRelateStatement() (stmt *RelateStatement, err error) {
return nil, err return nil, err
} }
if _, _, err = p.shouldBe(TO); err != nil { if _, _, err = p.shouldBe(TO, WITH); err != nil {
return nil, err return nil, err
} }

View file

@ -197,6 +197,7 @@ const (
VIEW VIEW
VOID VOID
WHERE WHERE
WITH
keywordsEnd keywordsEnd
) )
@ -366,6 +367,7 @@ var tokens = [...]string{
VIEW: "VIEW", VIEW: "VIEW",
VOID: "VOID", VOID: "VOID",
WHERE: "WHERE", WHERE: "WHERE",
WITH: "WITH",
} }
var literals map[string]Token var literals map[string]Token