Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nfjBill committed Feb 22, 2022
1 parent 3a396bc commit fc611b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion create.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func Create(db *gorm.DB) {
func(field *gormSchema.Field) {
switch insertTo.Kind() {
case reflect.Struct:
if err = field.Set(insertTo, stmt.Vars[boundVars[field.Name]].(sql.Out).Dest); err != nil {
if err = field.Set(stmt.Context, insertTo, stmt.Vars[boundVars[field.Name]].(sql.Out).Dest); err != nil {
db.AddError(err)
}
case reflect.Map:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/golang/snappy v0.0.1
github.com/thoas/go-funk v0.9.1
golang.org/x/text v0.3.2
gorm.io/gorm v1.22.5
gorm.io/gorm v1.23.1
)

require (
Expand Down

0 comments on commit fc611b1

Please sign in to comment.