From d16f3979b84b6b97f13f0cb409af9d08b6fb76a1 Mon Sep 17 00:00:00 2001 From: Luciano Fiandesio Date: Thu, 28 Nov 2024 12:30:47 +0100 Subject: [PATCH] Fix invalid quoting on ou column [DHIS-16705] (#19329) --- .../src/main/java/org/hisp/dhis/analytics/OrgUnitField.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/OrgUnitField.java b/dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/OrgUnitField.java index f16cbb92e06f..a6082dd3a33d 100644 --- a/dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/OrgUnitField.java +++ b/dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/OrgUnitField.java @@ -223,7 +223,7 @@ private String ouQuote(String tableAlias, String col, boolean noColumnAlias) { + ((noColumnAlias) ? "" : " as " + col); } - return quote(tableAlias, col); + return sqlBuilder.quote(tableAlias, col); } @Override