From f616562fcf72182bb7e8834dd41e87ef65f73bb9 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 21 Feb 2020 19:58:07 +0800 Subject: [PATCH] Fix panic --- engine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine.go b/engine.go index a985df6e..99e9b584 100644 --- a/engine.go +++ b/engine.go @@ -92,7 +92,7 @@ func (engine *Engine) BufferSize(size int) *Session { // CondDeleted returns the conditions whether a record is soft deleted. func (engine *Engine) CondDeleted(col *core.Column) builder.Cond { - var cond builder.Cond + var cond = builder.NewCond() if col.SQLType.IsNumeric() { cond = builder.Eq{col.Name: 0} } else {