avoid bigint converted into float64 when unmarshaling

This commit is contained in:
kevin
2020-10-10 15:24:29 +08:00
parent 3f8b080882
commit fe855c52f1
4 changed files with 35 additions and 36 deletions

View File

@@ -594,20 +594,6 @@ func TestQueryRowNoCache(t *testing.T) {
assert.True(t, ran)
}
func TestFloatKeyer(t *testing.T) {
primaries := []interface{}{
float32(1),
float64(1),
}
for _, primary := range primaries {
val := floatKeyer(func(i interface{}) string {
return fmt.Sprint(i)
})(primary)
assert.Equal(t, "1", val)
}
}
func resetStats() {
atomic.StoreUint64(&stats.Total, 0)
atomic.StoreUint64(&stats.Hit, 0)