diff --git a/src/main/java/fr/insee/survey/datacollectionmanagement/contact/repository/ContactRepository.java b/src/main/java/fr/insee/survey/datacollectionmanagement/contact/repository/ContactRepository.java index 23a877ad..3d3846e9 100644 --- a/src/main/java/fr/insee/survey/datacollectionmanagement/contact/repository/ContactRepository.java +++ b/src/main/java/fr/insee/survey/datacollectionmanagement/contact/repository/ContactRepository.java @@ -43,7 +43,7 @@ OR UPPER(c.email) LIKE CONCAT(:param, '%') Page findByIdentifierIgnoreCaseStartingWithOrFirstNameIgnoreCaseStartingWithOrLastNameIgnoreCaseStartingWithOrEmailIgnoreCaseStartingWith(String identifier, String firstName, String lastName, String email, Pageable pageable); - @Query(nativeQuery = true, value = "SELECT * FROM contact WHERE UPPER(CONCAT(c.first_name, ' ', c.last_name)) LIKE CONCAT(:param, '%')") + @Query(nativeQuery = true, value = "SELECT * FROM contact c WHERE UPPER(CONCAT(c.first_name, ' ', c.last_name)) LIKE CONCAT(:param, '%')") Page findByFirstNameLastName( String param, Pageable pageable); @Query(nativeQuery = true, value = "SELECT * FROM contact")