diff --git a/strmangle/strmangle.go b/strmangle/strmangle.go index 018ffc7..b330ac0 100644 --- a/strmangle/strmangle.go +++ b/strmangle/strmangle.go @@ -533,10 +533,9 @@ func WhereClauseRepeated(lq, rq string, start int, cols []string, count int) str buf.WriteString(") OR (") } + startIndex = 0 if start > 0 { startIndex = start + i*len(cols) - } else { - startIndex = 0 } buf.WriteString(WhereClause(lq, rq, startIndex, cols))