We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ea56d78 + 7a71858 commit a84ea20Copy full SHA for a84ea20
templates/test/insert.go.tpl
@@ -39,7 +39,7 @@ func test{{$alias.UpPlural}}InsertWhitelist(t *testing.T) {
39
{{if not .NoContext}}ctx := context.Background(){{end}}
40
tx := MustTx({{if .NoContext}}boil.Begin(){{else}}boil.BeginTx(ctx, nil){{end}})
41
defer func() { _ = tx.Rollback() }()
42
- if err = o.Insert({{if not .NoContext}}ctx, {{end -}} tx, boil.Whitelist({{$alias.DownSingular}}ColumnsWithoutDefault...)); err != nil {
+ if err = o.Insert({{if not .NoContext}}ctx, {{end -}} tx, boil.Whitelist(strmangle.SetMerge({{$alias.DownSingular}}PrimaryKeyColumns, {{$alias.DownSingular}}ColumnsWithoutDefault)...)); err != nil {
43
t.Error(err)
44
}
45
0 commit comments