Enable query params for LIMIT and START in queries

This commit is contained in:
Tobie Morgan Hitchcock 2017-02-14 20:25:31 +00:00
parent 363cfa8758
commit cd7922db15

View file

@ -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"}}
}