From 87112ab1c711db2d8dd26ee32a4ccd0bb9307261 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Wed, 22 Jul 2020 15:05:38 +0800 Subject: [PATCH] Fix row callback name --- callbacks/callbacks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }