From e656fa30fe530d59f3a28bf2c171a01c00143e34 Mon Sep 17 00:00:00 2001 From: Elias Terranti <123065177+T-eli@users.noreply.github.com> Date: Tue, 16 Jan 2024 14:41:12 +0100 Subject: [PATCH] fix : noneprefixer did not return correct fixed len (#304) * fix : noneprefixer did not return correct fixed len * Revert "fix : noneprefixer did not return correct fixed len" This reverts commit 69ff60480416e2bddc88be3e9c354d904c25a1f7. * fix: text (cherry picked from commit 69ff60480416e2bddc88be3e9c354d904c25a1f7) --------- Co-authored-by: Lyes --- field/numeric.go | 2 +- field/numeric_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/field/numeric.go b/field/numeric.go index 1c0f854..e4ebc8e 100644 --- a/field/numeric.go +++ b/field/numeric.go @@ -185,7 +185,7 @@ func (f *Numeric) Marshal(v any) error { } f.value = val default: - return fmt.Errorf("data does not match require *Numeric or (int, *int, string, *string) type") + return fmt.Errorf("data does not match require *Numeric or (int64, *int64, string, *string) type") } return nil diff --git a/field/numeric_test.go b/field/numeric_test.go index 090b039..8267925 100644 --- a/field/numeric_test.go +++ b/field/numeric_test.go @@ -160,7 +160,7 @@ func TestNumericFieldMarshal(t *testing.T) { err = numericField.Marshal([]byte("123456")) require.Error(t, err) - require.Equal(t, "data does not match require *Numeric or (int, *int, string, *string) type", err.Error()) + require.Equal(t, "data does not match require *Numeric or (int64, *int64, string, *string) type", err.Error()) } func TestNumericFieldWithNotANumber(t *testing.T) {