From 9ae852eb583d2dced83b1d2ffe1c8803dda2c92e Mon Sep 17 00:00:00 2001 From: Sergej Brazdeikis Date: Sat, 11 Mar 2023 16:15:52 +0100 Subject: [PATCH] Fix typo in error message `uint32` -> `uint16` --- pgtype/convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgtype/convert.go b/pgtype/convert.go index 8a2afbe1..4eb8014a 100644 --- a/pgtype/convert.go +++ b/pgtype/convert.go @@ -262,7 +262,7 @@ func int64AssignTo(srcVal int64, srcValid bool, dst any) error { *v = uint8(srcVal) case *uint16: if srcVal < 0 { - return fmt.Errorf("%d is less than zero for uint32", srcVal) + return fmt.Errorf("%d is less than zero for uint16", srcVal) } else if srcVal > math.MaxUint16 { return fmt.Errorf("%d is greater than maximum value for uint16", srcVal) }