Allow any expression for SELECT VERSION string

This commit is contained in:
Tobie Morgan Hitchcock 2018-05-30 13:25:11 +01:00
parent 7bf408336d
commit db37b8378b

View file

@ -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()
}