Refactored if-else in WhereClauseRepeated
This commit is contained in:
parent
f3f8074833
commit
21917fcfc6
1 changed files with 1 additions and 2 deletions
|
@ -533,10 +533,9 @@ func WhereClauseRepeated(lq, rq string, start int, cols []string, count int) str
|
||||||
buf.WriteString(") OR (")
|
buf.WriteString(") OR (")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
startIndex = 0
|
||||||
if start > 0 {
|
if start > 0 {
|
||||||
startIndex = start + i*len(cols)
|
startIndex = start + i*len(cols)
|
||||||
} else {
|
|
||||||
startIndex = 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
buf.WriteString(WhereClause(lq, rq, startIndex, cols))
|
buf.WriteString(WhereClause(lq, rq, startIndex, cols))
|
||||||
|
|
Loading…
Reference in a new issue