← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19723: Analytics tables, fixed bug related to aggregation levels

 

------------------------------------------------------------
revno: 19723
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-08-05 17:53:57 +0200
message:
  Analytics tables, fixed bug related to aggregation levels
modified:
  dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcAnalyticsTableManager.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/table/JdbcAnalyticsTableManager.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcAnalyticsTableManager.java	2015-07-15 06:49:50 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcAnalyticsTableManager.java	2015-08-05 15:53:57 +0000
@@ -413,7 +413,7 @@
             sql.deleteCharAt( sql.length() - ",".length() );
             
             sql.append( " where level > " + aggregationLevel );
-            sql.append( " and de in (" + getQuotedCommaDelimitedString( dataElements ) + ")" );
+            sql.append( " and dx in (" + getQuotedCommaDelimitedString( dataElements ) + ")" );
             
             log.debug( "Aggregation level SQL: " + sql.toString() );