diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d17ee2..e2586c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Updated error constant generation to employ specific error types for making error matching easier. (thanks @mbezhanov) +- Fix random value generation for pq.Float64Array factory (thanks @felipeparaujo) ## [v0.29.0] - 2024-11-20 diff --git a/gen/bobgen-helpers/helpers.go b/gen/bobgen-helpers/helpers.go index 064312b..98cb163 100644 --- a/gen/bobgen-helpers/helpers.go +++ b/gen/bobgen-helpers/helpers.go @@ -338,7 +338,7 @@ func Types() drivers.Types { Imports: importers.List{`"github.com/lib/pq"`}, RandomExpr: `arr := make(pq.Float64Array, f.IntBetween(1, 5)) for i := range arr { - arr[i] = f.Float64() + arr[i] = f.Float64(10, -1_000_000, 1_000_000) } return arr`, CompareExpr: `slices.Equal(AAA, BBB)`,