Skip to content

fix: SQL typo in analytics export [DHIS2-21496]#23897

Merged
maikelarabori merged 1 commit into
masterfrom
DHIS2-21496_2.44
May 13, 2026
Merged

fix: SQL typo in analytics export [DHIS2-21496]#23897
maikelarabori merged 1 commit into
masterfrom
DHIS2-21496_2.44

Conversation

@maikelarabori

Copy link
Copy Markdown
Contributor

There is a typo in the SQL generated during the analytics export process, when keyRespectMetaDataStartEndDatesInAnalyticsTableExport is enabled.

It causes a SQL statement like and dv."deleted" = falseand (aon.startdate is null or aon.startdate <= ps.startdate), where it should be and dv."deleted" = false and (aon.startdate is null or aon.startdate <= ps.startdate).

Not the typo in falseand (fixed to false and).

The logic was encapsulated in a method so we could properly test it.

@sonarqubecloud

Copy link
Copy Markdown

@maikelarabori
maikelarabori merged commit 1eb2aa1 into master May 13, 2026
18 checks passed
@maikelarabori
maikelarabori deleted the DHIS2-21496_2.44 branch May 13, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants