From 0bbdb50415ba497405c4cab331b747f01e18e699 Mon Sep 17 00:00:00 2001 From: Mosen Date: Sun, 26 Jun 2016 23:11:36 +1000 Subject: [PATCH] Change type assertion in DEPProfileStatus.Scan() to string. --- device/device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device/device.go b/device/device.go index 44c52b43..747a1360 100644 --- a/device/device.go +++ b/device/device.go @@ -71,7 +71,7 @@ func (status *DEPProfileStatus) Scan(value interface{}) error { return nil } if sv, err := driver.String.ConvertValue(value); err == nil { - if v, ok := sv.([]byte); ok { + if v, ok := sv.(string); ok { *status = DEPProfileStatus(v) return nil }