Attempt to fix networkGeolocationCounts on MySQL

This commit is contained in:
Risto Lahtela 2019-02-01 13:51:30 +02:00 committed by Rsl1122
parent 1d2fc774c2
commit 7080b7b3b2

View File

@ -183,6 +183,7 @@ public class ServerAggregateQueries {
public static Query<Map<String, Integer>> networkGeolocationCounts() {
String subQuery = "SELECT " +
GeoInfoTable.USER_UUID + ", " +
GeoInfoTable.GEOLOCATION + ", " +
GeoInfoTable.LAST_USED + ", " +
"MAX(" + GeoInfoTable.LAST_USED + ") as m" +
@ -203,4 +204,4 @@ public class ServerAggregateQueries {
}
};
}
}
}