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
|
package sql
|
||||||
|
|
||||||
|
import "time"
|
||||||
|
|
||||||
func (p *parser) parseLetStatement() (stmt *LetStatement, err error) {
|
func (p *parser) parseLetStatement() (stmt *LetStatement, err error) {
|
||||||
|
|
||||||
stmt = &LetStatement{}
|
stmt = &LetStatement{}
|
||||||
|
@ -58,6 +60,8 @@ func (p *parser) parseLetStatement() (stmt *LetStatement, err error) {
|
||||||
p.v[stmt.Name] = stmt.What
|
p.v[stmt.Name] = stmt.What
|
||||||
case []interface{}, map[string]interface{}:
|
case []interface{}, map[string]interface{}:
|
||||||
p.v[stmt.Name] = stmt.What
|
p.v[stmt.Name] = stmt.What
|
||||||
|
case time.Time, time.Duration:
|
||||||
|
p.v[stmt.Name] = stmt.What
|
||||||
case *Null, *Void, *Empty, *Table, *Thing, *Param:
|
case *Null, *Void, *Empty, *Table, *Thing, *Param:
|
||||||
p.v[stmt.Name] = stmt.What
|
p.v[stmt.Name] = stmt.What
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue