dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #32496
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16590: Fixed bug - Exception when to run Manual Aggregation by using MySQL.
------------------------------------------------------------
revno: 16590
committer: Tran Chau<tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2014-08-31 16:14:47 +0700
message:
Fixed bug - Exception when to run Manual Aggregation by using MySQL.
modified:
dhis-2/dhis-services/dhis-service-eventreporting/src/main/java/org/hisp/dhis/caseaggregation/hibernate/HibernateCaseAggregationConditionStore.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-eventreporting/src/main/java/org/hisp/dhis/caseaggregation/hibernate/HibernateCaseAggregationConditionStore.java'
--- dhis-2/dhis-services/dhis-service-eventreporting/src/main/java/org/hisp/dhis/caseaggregation/hibernate/HibernateCaseAggregationConditionStore.java 2014-08-29 18:08:10 +0000
+++ dhis-2/dhis-services/dhis-service-eventreporting/src/main/java/org/hisp/dhis/caseaggregation/hibernate/HibernateCaseAggregationConditionStore.java 2014-08-31 09:14:47 +0000
@@ -403,8 +403,8 @@
}
}
else
- {
- sql += " " + operator + "( cast( pdv.value as DOUBLE PRECISION ) ) ";
+ {
+ sql += " " + operator + "( cast( pdv.value as " + statementBuilder.getDoubleColumnType() + " ) ) ";
sql += "FROM trackedentitydatavalue pdv ";
sql += " INNER JOIN programstageinstance psi ";
sql += " ON psi.programstageinstanceid = pdv.programstageinstanceid ";