Enable WITH aswell as TO in RELATE clause
This commit is contained in:
parent
6bfb30a3b4
commit
dacf7b954b
2 changed files with 3 additions and 1 deletions
|
@ -34,7 +34,7 @@ func (p *parser) parseRelateStatement() (stmt *RelateStatement, err error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if _, _, err = p.shouldBe(TO); err != nil {
|
||||
if _, _, err = p.shouldBe(TO, WITH); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
|
@ -197,6 +197,7 @@ const (
|
|||
VIEW
|
||||
VOID
|
||||
WHERE
|
||||
WITH
|
||||
|
||||
keywordsEnd
|
||||
)
|
||||
|
@ -366,6 +367,7 @@ var tokens = [...]string{
|
|||
VIEW: "VIEW",
|
||||
VOID: "VOID",
|
||||
WHERE: "WHERE",
|
||||
WITH: "WITH",
|
||||
}
|
||||
|
||||
var literals map[string]Token
|
||||
|
|
Loading…
Reference in a new issue