mirror of https://github.com/go-gorm/gorm.git
Better log output for uint*
This commit is contained in:
parent
8494ecdc98
commit
906799fef2
|
@ -64,9 +64,8 @@ var LogFormatter = func(values ...interface{}) (messages []interface{}) {
|
|||
}
|
||||
} else {
|
||||
switch value.(type) {
|
||||
case int8, int, int16, int32, int64, float32, float64, bool:
|
||||
case int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, float32, float64, bool:
|
||||
formattedValues = append(formattedValues, fmt.Sprintf("%v", value))
|
||||
break
|
||||
default:
|
||||
formattedValues = append(formattedValues, fmt.Sprintf("'%v'", value))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue