You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when you retrieving null timestamps from database result is error: unsupported Scan, storing driver.Value type into type *time.Time. This requires additional work for adding helper class NullTime with Scan() and Value() methods and then parsing them. But type time.Time has its own check for nil type: Time.IsZero(). It is need just add next code to src/database/sql/convert.go:301 to reduce extra work for users:
case *time.Time:
if d == nil {
return errNilPtr
}
*d = time.Time{}
return nil
The text was updated successfully, but these errors were encountered:
Currently when you retrieving null timestamps from database result is error: unsupported Scan, storing driver.Value type into type *time.Time. This requires additional work for adding helper class NullTime with Scan() and Value() methods and then parsing them. But type time.Time has its own check for nil type: Time.IsZero(). It is need just add next code to src/database/sql/convert.go:301 to reduce extra work for users:
The text was updated successfully, but these errors were encountered: