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 return nil, nil
} }
tok, lit, err := p.shouldBe(DATE, TIME, PARAM) return p.parseExpr()
if err != nil {
return nil, &ParseError{Found: lit, Expected: []string{"version date or time"}}
}
return p.declare(tok, lit)
} }