Skip to content

Commit

Permalink
Fixes #122.
Browse files Browse the repository at this point in the history
Truncate/drop #cohort_ends temp table.
  • Loading branch information
chrisknoll committed Aug 22, 2016
1 parent dcfcfe3 commit bd9f32f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ FROM cteIncludedEvents Results
@ResultLimitFilter
;

-- TODO: Apply end date stratagies
-- Apply end date stratagies
-- by default, all events extend to the op_end_date.
select event_id, person_id, op_end_date as end_date
into #cohort_ends
Expand Down Expand Up @@ -109,6 +109,8 @@ coalesce((
;
}

TRUNCATE TABLE #cohort_ends;
DROP TABLE #cohort_ends;

TRUNCATE TABLE #inclusionRuleCohorts;
DROP TABLE #inclusionRuleCohorts;
Expand Down

0 comments on commit bd9f32f

Please sign in to comment.