From db37b8378b0a0bd765bdf5fd5b532f34a12e440d Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 30 May 2018 13:25:11 +0100 Subject: [PATCH] Allow any expression for SELECT VERSION string --- sql/select.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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() }