diff --git a/sql/select.go b/sql/select.go index 2c3e71a0..e12f8d66 100644 --- a/sql/select.go +++ b/sql/select.go @@ -369,11 +369,6 @@ func (p *parser) parseVersion() (Expr, error) { return nil, nil } - tok, lit, err := p.shouldBe(DATE, TIME, PARAM) - if err != nil { - return nil, &ParseError{Found: lit, Expected: []string{"version date or time"}} - } - - return p.declare(tok, lit) + return p.parseExpr() }