From 3a126233bff544590896a14b36b092c9a5941189 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Mon, 23 Mar 2020 22:40:12 +0800 Subject: [PATCH] Fix select with * --- callbacks/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/callbacks/helper.go b/callbacks/helper.go index 433ab346..0dd6ff43 100644 --- a/callbacks/helper.go +++ b/callbacks/helper.go @@ -17,7 +17,7 @@ func SelectAndOmitColumns(stmt *gorm.Statement) (map[string]bool, bool) { for _, dbName := range stmt.Schema.DBNames { results[dbName] = true } - return results, true + break } if field := stmt.Schema.LookUpField(column); field != nil {