diff --git a/scope_private.go b/scope_private.go index b9476455..4ecefe3a 100644 --- a/scope_private.go +++ b/scope_private.go @@ -38,7 +38,7 @@ func (scope *Scope) buildWhereCondition(clause map[string]interface{}) (str stri case interface{}: var sqls []string for _, field := range scope.New(value).Fields() { - if !field.IsBlank { + if !field.IsIgnored && !field.IsBlank { sqls = append(sqls, fmt.Sprintf("(%v = %v)", scope.Quote(field.DBName), scope.AddToVars(field.Field.Interface()))) } }