Skip to content

Commit

Permalink
Merge pull request #321 from felipeparaujo/main
Browse files Browse the repository at this point in the history
Fix random value generation for pq.Float64Array factory
  • Loading branch information
stephenafamo authored Dec 9, 2024
2 parents d3af79d + 3c55a3c commit 5487976
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion gen/bobgen-helpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)`,
Expand Down

0 comments on commit 5487976

Please sign in to comment.