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
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, _, err = p.shouldBe(TO); err != nil {
|
if _, _, err = p.shouldBe(TO, WITH); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue