Skip to content

Commit cee94dc

Browse files
committed
Fix wrong assignemnt in models.Plural()
1 parent 118951a commit cee94dc

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
44
and this project adheres to [Semantic
55
Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [v4.10.1] - 2022-04-15
8+
9+
### Fixes
10+
11+
- Properly assign new query object in models.Pural()
12+
713
## [v4.10.0] - 2022-04-15
814

915
### Added

go.mod

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@ require (
2222
modernc.org/sqlite v1.14.5
2323
)
2424

25-
retract v4.9.0 // Generated code shows v4.8.6, messed up commit tagging and untidy go.mod
25+
retract (
26+
v4.10.0 // Generated models are invalid due to a wrong assignment
27+
v4.9.0 // Generated code shows v4.8.6, messed up commit tagging and untidy go.mod
28+
)

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"github.com/volatiletech/sqlboiler/v4/importers"
1616
)
1717

18-
const sqlBoilerVersion = "4.10.0"
18+
const sqlBoilerVersion = "4.10.1"
1919

2020
var (
2121
flagConfigFile string

templates/main/13_all.go.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ func {{$alias.UpPlural}}(mods ...qm.QueryMod) {{$alias.DownSingular}}Query {
1414
queries.SetSelect(q, []string{"{{$schemaTable}}.*"})
1515
}
1616

17-
return {{$alias.DownSingular}}Query{NewQuery(q)}
17+
return {{$alias.DownSingular}}Query{q}
1818
}

0 commit comments

Comments
 (0)