Skip to content

Commit

Permalink
stores: catch uint8 slice for unixTimeMS
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Oct 17, 2023
1 parent 272e48d commit 59c8e70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stores/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ func (u *unixTimeMS) Scan(value interface{}) error {
switch value := value.(type) {
case int64:
msec = value
case []uint8:
return fmt.Errorf("failed to unmarshal uint8: %v", len(value))
default:
return fmt.Errorf("failed to unmarshal unixTimeMS value: %v %T", value, value)
}
Expand Down

0 comments on commit 59c8e70

Please sign in to comment.