Change type assertion in DEPProfileStatus.Scan() to string.

This commit is contained in:
Mosen
2016-06-26 23:11:36 +10:00
parent 80eacdbfac
commit 0bbdb50415

View File

@@ -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
}