Skip to content

Commit

Permalink
fix: improve serach contact by email or identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
BettyB979 committed Dec 5, 2024
1 parent cbb7feb commit 88f75e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public interface ContactRepository extends PagingAndSortingRepository<Contact, S
FROM
contact c
WHERE
UPPER(c.identifier) LIKE CONCAT(:param, '%')
UPPER(c.identifier) LIKE :param || '%'
""",
nativeQuery = true
)
Expand All @@ -44,7 +44,7 @@ public interface ContactRepository extends PagingAndSortingRepository<Contact, S
FROM
contact c
WHERE
UPPER(c.email) LIKE CONCAT(:param, '%')
UPPER(c.email) LIKE :param || '%'
""",
nativeQuery = true
)
Expand Down

0 comments on commit 88f75e9

Please sign in to comment.