Skip to content

Commit

Permalink
Add cast to concept_id search. #2114 - test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-abushkevich committed Oct 20, 2022
1 parent 9cfd1de commit 99ac9d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/resources/vocabulary/sql/search-expected-3.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
select CONCEPT_ID, CONCEPT_NAME, ISNULL(STANDARD_CONCEPT,'N') STANDARD_CONCEPT, ISNULL(INVALID_REASON,'V') INVALID_REASON, CONCEPT_CODE, CONCEPT_CLASS_ID, DOMAIN_ID, VOCABULARY_ID, VALID_START_DATE, VALID_END_DATE
from omop_v5.concept
where 1=1 AND (LOWER(CONCEPT_NAME) LIKE ? or LOWER(CONCEPT_CODE) LIKE ? or CONCEPT_ID = ?)
where 1=1 AND (LOWER(CONCEPT_NAME) LIKE ? or LOWER(CONCEPT_CODE) LIKE ? or CONCEPT_ID = CAST(? as int))
order by CONCEPT_NAME ASC

0 comments on commit 99ac9d0

Please sign in to comment.