Commit 1e10fcad by Marcus Efraimsson

test: fix failing postgres test

Should use case insensitive matching when searching for users
parent c8ac6add
......@@ -400,7 +400,7 @@ func SearchUsers(query *m.SearchUsersQuery) error {
}
if query.Query != "" {
whereConditions = append(whereConditions, "(email LIKE ? OR name LIKE ? OR login like ?)")
whereConditions = append(whereConditions, "(email "+dialect.LikeStr()+" ? OR name "+dialect.LikeStr()+" ? OR login "+dialect.LikeStr()+" ?)")
whereParams = append(whereParams, queryWithWildcards, queryWithWildcards, queryWithWildcards)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment