diff --git a/sql/let.go b/sql/let.go index 586bc98f..bdf11321 100644 --- a/sql/let.go +++ b/sql/let.go @@ -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 }