Commit 94953539 authored by Matija Obreza's avatar Matija Obreza

Fix: added missing joins in DirectMysqlQuery

parent 59697156
......@@ -165,10 +165,12 @@ public class DirectMysqlQuery {
}
if (filters.hasFilter(FilterConstants.GEO_LATITUDE) || filters.hasFilter(FilterConstants.GEO_LONGITUDE) || filters.hasFilter(FilterConstants.GEO_ELEVATION)) {
innerJoin(TABLE_ACCEID, null, "acce.id=a.id");
innerJoin(TABLE_ACCESSION_GEO, "geo", "geo.id=acce.geoId");
}
if (filters.hasFilter(FilterConstants.ALIAS)) {
innerJoin(TABLE_ACCEID, null, "acce.id=a.id");
innerJoin(TABLE_ACCESSION_ALIAS, "accename", "accename.accessionId=acce.id");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment