dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #17794
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7220: TR fixed sql bug
------------------------------------------------------------
revno: 7220
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-06-06 15:44:00 +0200
message:
TR fixed sql bug
modified:
dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/hibernate/HibernateProgramStageInstanceStore.java
dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/report/GenerateTabularReportAction.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-patient/src/main/java/org/hisp/dhis/program/hibernate/HibernateProgramStageInstanceStore.java'
--- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/hibernate/HibernateProgramStageInstanceStore.java 2012-05-30 15:51:44 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/hibernate/HibernateProgramStageInstanceStore.java 2012-06-06 13:44:00 +0000
@@ -320,19 +320,19 @@
for ( Integer key : identifierKeys.keySet() )
{
- sql += operator + "identifier_" + key + identifierKeys.get( key ) + ",";
+ sql += operator + "identifier_" + key + identifierKeys.get( key ) + " ";
operator = "and ";
}
for ( Integer key : attributeKeys.keySet() )
{
- sql += operator + "attribute_" + key + attributeKeys.get( key ) + ",";
+ sql += operator + "attribute_" + key + attributeKeys.get( key ) + " ";
operator = "and ";
}
for ( Integer key : dataElementKeys.keySet() )
{
- sql += operator + "element_" + key + dataElementKeys.get( key ) + ",";
+ sql += operator + "element_" + key + dataElementKeys.get( key ) + " ";
operator = "and ";
}
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/report/GenerateTabularReportAction.java'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/report/GenerateTabularReportAction.java 2012-05-29 07:37:37 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/report/GenerateTabularReportAction.java 2012-06-06 13:44:00 +0000
@@ -347,6 +347,8 @@
searchingDEKeys, organisationUnits, level, startValue, endValue, !orderByOrgunitAsc,
null, null );
}
+System.out.println();
+System.out.println(grid);
return type == null ? SUCCESS : type;
}