From 9b193081ec710ab5573e85832a4d212efd454ba3 Mon Sep 17 00:00:00 2001 From: longlihale <1510613524@qq.com> Date: Thu, 30 Dec 2021 11:44:44 +0800 Subject: [PATCH] fix: generate sql incorrect when use soft_delete and only one OR --- clause/where.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/clause/where.go b/clause/where.go index d04cdc5a..20a01136 100644 --- a/clause/where.go +++ b/clause/where.go @@ -95,11 +95,9 @@ func And(exprs ...Expression) Expression { } if len(exprs) == 1 { - if _, ok := exprs[0].(OrConditions); !ok { return exprs[0] } - } return AndConditions{Exprs: exprs}