Skip to content

Commit bd9f32f

Browse files
committed
Fixes #122.
Truncate/drop #cohort_ends temp table.
1 parent dcfcfe3 commit bd9f32f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/resources/resources/cohortdefinition/sql/generateCohort.sql

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ FROM cteIncludedEvents Results
4242
@ResultLimitFilter
4343
;
4444

45-
-- TODO: Apply end date stratagies
45+
-- Apply end date stratagies
4646
-- by default, all events extend to the op_end_date.
4747
select event_id, person_id, op_end_date as end_date
4848
into #cohort_ends
@@ -109,6 +109,8 @@ coalesce((
109109
;
110110
}
111111

112+
TRUNCATE TABLE #cohort_ends;
113+
DROP TABLE #cohort_ends;
112114

113115
TRUNCATE TABLE #inclusionRuleCohorts;
114116
DROP TABLE #inclusionRuleCohorts;

0 commit comments

Comments
 (0)