Skip to content

Commit

Permalink
Merge pull request #190 from trheyi/main
Browse files Browse the repository at this point in the history
Refactor query.go to use OrWhere instead of Where in the match case
  • Loading branch information
trheyi authored Apr 3, 2024
2 parents d33b278 + 7125136 commit 56e0753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func (param QueryParam) Where(where QueryWhere, qb query.Query, mod *Model) {
break
case "match":
if value, ok := where.Value.(string); ok {
qb.Where(column, "like", "%"+value+"%")
qb.OrWhere(column, "like", "%"+value+"%")
}
break
case "in":
Expand Down

0 comments on commit 56e0753

Please sign in to comment.