Skip to content

Commit

Permalink
Update create.go
Browse files Browse the repository at this point in the history
bugfix: When using the create or createInBatches methods with Byconity, RowsAffected is not set correctly
  • Loading branch information
nelsontang authored Jul 2, 2024
1 parent cd28769 commit 97b7731
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions create.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func (dialector *Dialector) Create(db *gorm.DB) {
if _, err := stmt.Exec(value...); db.AddError(err) != nil {
return
}
db.RowsAffected++
}
return
}
Expand Down

0 comments on commit 97b7731

Please sign in to comment.