forked from mirror/gorm
Merge pull request #709 from pacificporter/is_byte_array_or_slice
Fix panic() in isUUID()
This commit is contained in:
commit
611e613459
|
@ -69,7 +69,7 @@ func isByteArrayOrSlice(value reflect.Value) bool {
|
|||
}
|
||||
|
||||
func isUUID(value reflect.Value) bool {
|
||||
if value.Type().Len() != 16 {
|
||||
if value.Kind() != reflect.Array || value.Type().Len() != 16 {
|
||||
return false
|
||||
}
|
||||
typename := value.Type().Name()
|
||||
|
|
Loading…
Reference in New Issue