dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #28652
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14322: Minor
Merge authors:
Lars Helge Øverland (larshelge)
------------------------------------------------------------
revno: 14322 [merge]
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-03-20 19:48:06 +0100
message:
Minor
modified:
dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/DefaultTrackedEntityInstanceService.java
dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/hibernate/HibernateTrackedEntityInstanceStore.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-tracker/src/main/java/org/hisp/dhis/trackedentity/DefaultTrackedEntityInstanceService.java'
--- dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/DefaultTrackedEntityInstanceService.java 2014-03-20 15:05:57 +0000
+++ dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/DefaultTrackedEntityInstanceService.java 2014-03-20 18:48:06 +0000
@@ -139,8 +139,6 @@
// -------------------------------------------------------------------------
// Implementation methods
// -------------------------------------------------------------------------
-
- //TODO Bug: use full outer join when no filter
//TODO queries with multiple words
//TODO lower index on attribute value?
=== modified file 'dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/hibernate/HibernateTrackedEntityInstanceStore.java'
--- dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/hibernate/HibernateTrackedEntityInstanceStore.java 2014-03-19 11:22:26 +0000
+++ dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/hibernate/HibernateTrackedEntityInstanceStore.java 2014-03-20 07:03:51 +0000
@@ -159,7 +159,7 @@
{
String col = statementBuilder.columnQuote( item.getItemId() );
- String joinClause = params.isOrQuery() ? "full outer join" : "inner join";
+ String joinClause = item.hasFilter() ? "inner join" : "full outer join"; //TODO left join?
sql +=
joinClause + " trackedentityattributevalue as " + col + " " +