Skip to content

Commit

Permalink
Merge pull request #689 from testwill/loop
Browse files Browse the repository at this point in the history
chore: slice append replace loop
  • Loading branch information
xiam authored Aug 26, 2023
2 parents 8a3fe0c + 957e2d6 commit 309e791
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/sqlbuilder/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ func (tu *templateWithUtils) toWhereWithArguments(term interface{}) (where exql.
}
cv, v := tu.toColumnValues(adapter.NewConstraint(key, val))
args = append(args, v...)
for i := range cv.ColumnValues {
where.Conditions = append(where.Conditions, cv.ColumnValues[i])
}
where.Conditions = append(where.Conditions, cv.ColumnValues...)
}
return
}
Expand Down

0 comments on commit 309e791

Please sign in to comment.