1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 20:41:57 +00:00

handle null sql iso8601, kitchen time and simple date column values

This commit is contained in:
Gerasimos (Makis) Maropoulos
2021-11-29 12:54:27 +02:00
parent 226a4cb064
commit ad2ec68c34
3 changed files with 6 additions and 0 deletions

View File

@@ -105,6 +105,8 @@ func (t *SimpleDate) Scan(src interface{}) error {
return err
}
*t = tt
case nil:
*t = SimpleDate(time.Time{})
default:
return fmt.Errorf("SimpleDate: unknown type of: %T", v)
}