Skip to content

Commit

Permalink
fix: fix unit_test join pk error (#934)
Browse files Browse the repository at this point in the history
* fix: fix unit_test join pk error

* tests: update unit test
  • Loading branch information
tr1v3r authored Jul 27, 2023
1 parent efead9c commit c4dd631
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion internal/template/method.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func Test_{{.QueryStructName}}Query(t *testing.T) {
}
var _a _another
var _aPK = field.NewString(_a.TableName(), clause.PrimaryKey)
var _aPK = field.NewString(_a.TableName(), "id")
err = _do.Join(&_a, primaryKey.EqCol(_aPK)).Scan(map[string]interface{}{})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion tests/.expect/dal_2/query/banks.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/.expect/dal_2/query/credit_cards.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/.expect/dal_2/query/customers.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/.expect/dal_2/query/people.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/.expect/dal_2/query/users.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/.expect/dal_3/query/banks.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/.expect/dal_3/query/credit_cards.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/.expect/dal_3/query/customers.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/.expect/dal_3/query/people.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/.expect/dal_3/query/users.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/.expect/dal_4/query/banks.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/.expect/dal_4/query/credit_cards.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/.expect/dal_4/query/customers.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/.expect/dal_4/query/people.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/.expect/dal_4/query/users.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/.expect/dal_5/query/users.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/.expect/dal_6/query/users.gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c4dd631

Please sign in to comment.