Enable times as basic LET variables and set immediately
This commit is contained in:
parent
0292140d3c
commit
4f04721b31
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue