diff --git a/callbacks/callbacks.go b/callbacks/callbacks.go index f61252d4..0a12468c 100644 --- a/callbacks/callbacks.go +++ b/callbacks/callbacks.go @@ -45,6 +45,6 @@ func RegisterDefaultCallbacks(db *gorm.DB, config *Config) { updateCallback.Register("gorm:after_update", AfterUpdate) updateCallback.Match(enableTransaction).Register("gorm:commit_or_rollback_transaction", CommitOrRollbackTransaction) - db.Callback().Row().Register("gorm:raw", RowQuery) + db.Callback().Row().Register("gorm:row", RowQuery) db.Callback().Raw().Register("gorm:raw", RawExec) }