diff --git a/CHANGELOG.md b/CHANGELOG.md index f69e97128..a058a81ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,8 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release. - A connection is still opened after ConnectionPool.Close() (#208) - Future.GetTyped() after Future.Get() does not decode response correctly (#213) +- Decimal package use a test function GetNumberLength instead of a + package-level function getNumberLength (#219) ## [1.8.0] - 2022-08-17 diff --git a/decimal/bcd.go b/decimal/bcd.go index 2cdecb5f0..2b5a4b258 100644 --- a/decimal/bcd.go +++ b/decimal/bcd.go @@ -117,7 +117,7 @@ func encodeStringToBCD(buf string) ([]byte, error) { // number of digits. Therefore highNibble is false when decimal number // is even. highNibble := true - l := GetNumberLength(buf) + l := getNumberLength(buf) if l%2 == 0 { highNibble = false }