Skip to content

Commit

Permalink
fix: uses "year" column in rs_periodstructure instead of extracting t…
Browse files Browse the repository at this point in the history
…he year from "startdate" [DHIS2-18738] (#19674)

Signed-off-by: Giuseppe Nespolino <g.nespolino@gmail.com>
  • Loading branch information
gnespolino authored Jan 15, 2025
1 parent d6302e7 commit a50e2fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ private List<Integer> getDataYears(AnalyticsTableUpdateParams params) {
new StringBuilder(
replace(
"""
select distinct(extract(year from pe.startdate)) \
select distinct(extract(year from pe.enddate)) \
from datavalue dv \
inner join period pe on dv.periodid=pe.periodid \
where pe.startdate is not null \
Expand Down

0 comments on commit a50e2fe

Please sign in to comment.