Enable query params for LIMIT and START in queries
This commit is contained in:
parent
363cfa8758
commit
cd7922db15
1 changed files with 2 additions and 2 deletions
|
@ -258,7 +258,7 @@ func (p *parser) parseLimit() (Expr, error) {
|
|||
|
||||
_, _, _ = p.mightBe(BY)
|
||||
|
||||
tok, lit, err := p.shouldBe(NUMBER)
|
||||
tok, lit, err := p.shouldBe(NUMBER, PARAM)
|
||||
if err != nil {
|
||||
return nil, &ParseError{Found: lit, Expected: []string{"limit number"}}
|
||||
}
|
||||
|
@ -283,7 +283,7 @@ func (p *parser) parseStart() (Expr, error) {
|
|||
|
||||
_, _, _ = p.mightBe(AT)
|
||||
|
||||
tok, lit, err := p.shouldBe(NUMBER)
|
||||
tok, lit, err := p.shouldBe(NUMBER, PARAM)
|
||||
if err != nil {
|
||||
return nil, &ParseError{Found: lit, Expected: []string{"start number"}}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue