Enable times as basic LET variables and set immediately

This commit is contained in:
Tobie Morgan Hitchcock 2016-11-09 15:18:11 +00:00
parent 0292140d3c
commit 4f04721b31

View file

@ -14,6 +14,8 @@
package sql
import "time"
func (p *parser) parseLetStatement() (stmt *LetStatement, err error) {
stmt = &LetStatement{}
@ -58,6 +60,8 @@ func (p *parser) parseLetStatement() (stmt *LetStatement, err error) {
p.v[stmt.Name] = stmt.What
case []interface{}, map[string]interface{}:
p.v[stmt.Name] = stmt.What
case time.Time, time.Duration:
p.v[stmt.Name] = stmt.What
case *Null, *Void, *Empty, *Table, *Thing, *Param:
p.v[stmt.Name] = stmt.What
}