dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #36001
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18441: Analytics tables, last year fix
------------------------------------------------------------
revno: 18441
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-02-27 09:35:35 +0100
message:
Analytics tables, last year fix
modified:
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcCompletenessTableManager.java
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManager.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/JdbcCompletenessTableManager.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcCompletenessTableManager.java 2015-01-17 07:41:26 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcCompletenessTableManager.java 2015-02-27 08:35:35 +0000
@@ -198,7 +198,7 @@
"select distinct(extract(year from pe.startdate)) " +
"from completedatasetregistration cdr " +
"inner join period pe on cdr.periodid=pe.periodid " +
- "where pe.startdate is not null";
+ "where pe.startdate is not null ";
if ( earliest != null )
{
=== modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManager.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManager.java 2015-02-24 23:41:01 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManager.java 2015-02-27 08:35:35 +0000
@@ -334,7 +334,7 @@
String sql =
"select distinct(extract(year from psi.executiondate)) " +
"from programstageinstance psi " +
- "where psi.executiondate is not null";
+ "where psi.executiondate is not null ";
if ( earliest != null )
{