← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12945: sql fix in eventStore

 

------------------------------------------------------------
revno: 12945
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-11-14 12:16:10 +0100
message:
  sql fix in eventStore
modified:
  dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/DefaultEventStore.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-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/DefaultEventStore.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/DefaultEventStore.java	2013-11-14 11:01:50 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/DefaultEventStore.java	2013-11-14 11:16:10 +0000
@@ -149,10 +149,11 @@
             " from program p" +
             " left join programstage ps on ps.programid=p.programid" +
             " left join programstageinstance psi on ps.programstageid=psi.programstageid" +
+            " left join programinstance pi on pi.programinstanceid=psi.programinstanceid" +
             " left join organisationunit ou on (psi.organisationunitid=ou.organisationunitid)" +
             " left join patientdatavalue pdv on psi.programstageinstanceid=pdv.programstageinstanceid" +
             " left join dataelement de on pdv.dataelementid=de.dataelementid " +
-            " left join patient pa on pa.patientid=ps.patientid ";
+            " left join patient pa on pa.patientid=pi.patientid ";
 
         boolean startedWhere = false;