Skip to content

Commit

Permalink
Merge pull request #835 from dhis2/androsdk-829
Browse files Browse the repository at this point in the history
[ANDROSDK-829] Add distinct results in tei search
  • Loading branch information
vgarciabnz authored May 21, 2019
2 parents 053ddd2 + b6bcd2e commit d6c3262
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private TrackedEntityInstanceLocalQueryHelper() { }
@SuppressWarnings({"PMD.UseStringBufferForStringAppends"})
static String getSqlQuery(TrackedEntityInstanceQuery query, List<String> excludeList, int limit) {

String queryStr = "SELECT " + TEI_ALL + " FROM " +
String queryStr = "SELECT DISTINCT " + TEI_ALL + " FROM " +
TrackedEntityInstanceTableInfo.TABLE_INFO.name() + " " + TEI_ALIAS;

WhereClauseBuilder where = new WhereClauseBuilder();
Expand Down

0 comments on commit d6c3262

Please sign in to comment.