dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #29394
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14841: Analytics, fixed bug which applied when quering for dynamic dimensions with no items (all) as filter
------------------------------------------------------------
revno: 14841
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-04-14 12:24:27 +0200
message:
Analytics, fixed bug which applied when quering for dynamic dimensions with no items (all) as filter
modified:
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/JdbcAnalyticsManager.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/JdbcAnalyticsManager.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/JdbcAnalyticsManager.java 2014-04-14 09:15:35 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/JdbcAnalyticsManager.java 2014-04-14 10:24:27 +0000
@@ -295,9 +295,9 @@
sql += col + " in (" + getQuotedCommaDelimitedString( getUids( filter.getItems() ) ) + ") or ";
}
}
+
+ sql = removeLastOr( sql ) + ") ";
}
-
- sql = removeLastOr( sql ) + ") ";
}
return sql;