diff --git a/clause/on_conflict.go b/clause/on_conflict.go index f0c3d7e7..127d9bc1 100644 --- a/clause/on_conflict.go +++ b/clause/on_conflict.go @@ -40,7 +40,7 @@ func (onConflict OnConflict) Build(builder Builder) { } if len(onConflict.Where.Exprs) > 0 { - builder.WriteString("WHERE ") + builder.WriteString(" WHERE ") onConflict.Where.Build(builder) builder.WriteByte(' ') }