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] (#19676)

Signed-off-by: Giuseppe Nespolino <[email protected]>
  • Loading branch information
gnespolino authored Jan 15, 2025
1 parent dec0b80 commit ecdf3f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ private List<AnalyticsTableColumn> getValueColumns() {
*/
private List<Integer> getDataYears(AnalyticsTableUpdateParams params) {
String sql =
"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 ecdf3f1

Please sign in to comment.