fix(db): rm mysql + better name research

This commit is contained in:
2025-03-15 17:44:22 +01:00
parent 2cdc7e4aac
commit ee77975c9c
5 changed files with 52 additions and 18 deletions

View File

@@ -252,7 +252,7 @@ public class CompetitionService {
} else {
if (fname == null || lname == null)
return Uni.createFrom().failure(new DBadRequestException("Nom et prénom requis"));
return combRepository.find("LOWER(lname) LIKE LOWER(?1) AND LOWER(fname) LIKE LOWER(?2)", lname,
return combRepository.find("unaccent(lname) ILIKE unaccent(?1) AND unaccent(fname) ILIKE unaccent(?2)", lname,
fname).firstResult()
.invoke(Unchecked.consumer(combModel -> {
if (combModel == null)