Fix panic

This commit is contained in:
Lunny Xiao 2020-02-21 19:58:07 +08:00
parent a12e848f22
commit f616562fcf
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ func (engine *Engine) BufferSize(size int) *Session {
// CondDeleted returns the conditions whether a record is soft deleted. // CondDeleted returns the conditions whether a record is soft deleted.
func (engine *Engine) CondDeleted(col *core.Column) builder.Cond { func (engine *Engine) CondDeleted(col *core.Column) builder.Cond {
var cond builder.Cond var cond = builder.NewCond()
if col.SQLType.IsNumeric() { if col.SQLType.IsNumeric() {
cond = builder.Eq{col.Name: 0} cond = builder.Eq{col.Name: 0}
} else { } else {