Skip to content

Commit

Permalink
add ESCAPE statement so that test passes with h2 db
Browse files Browse the repository at this point in the history
  • Loading branch information
achimber-moj committed Dec 10, 2024
1 parent 90f3f5e commit 3ed5a0d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ interface ProbationAreaRepository : JpaRepository<ProbationAreaEntity, Long> {
from District d
join d.borough b
join b.probationArea pa
where pa.description not like 'ZZ%'
and (d.selectable = true or d.code like '%UAT' or d.code like '%UNA' or d.code like '%IAV')
where pa.description not like 'ZZ%' ESCAPE ' '
and (d.selectable = true or d.code like '%UAT' ESCAPE ' ' or d.code like '%UNA' ESCAPE ' ' or d.code like '%IAV' ESCAPE ' ')
and pa.selectable = true
and (pa.establishment is null or pa.establishment <> 'Y')
"""
Expand All @@ -107,8 +107,8 @@ interface ProbationAreaRepository : JpaRepository<ProbationAreaEntity, Long> {
from District d
join d.borough b
join b.probationArea pa
where pa.description not like 'ZZ%'
and (d.selectable = true or d.code like '%UAT' or d.code like '%UNA' or d.code like '%IAV')
where pa.description not like 'ZZ%' ESCAPE ' '
and (d.selectable = true or d.code like '%UAT' ESCAPE ' ' or d.code like '%UNA' ESCAPE ' ' or d.code like '%IAV' ESCAPE ' ')
and (pa.establishment is null or pa.establishment <> 'Y')
"""
)
Expand Down

0 comments on commit 3ed5a0d

Please sign in to comment.