Fixed total WorldTimes returned by db limited to a single world.

This commit is contained in:
Rsl1122 2017-09-07 20:00:57 +03:00
parent 4c78bb9271
commit e14e7aeda7

View File

@ -179,7 +179,8 @@ public class WorldTimesTable extends UserIDTable {
" FROM " + tableName + " FROM " + tableName +
" JOIN " + worldTable + " on " + worldIDColumn + "=" + columnWorldId + " JOIN " + worldTable + " on " + worldIDColumn + "=" + columnWorldId +
" JOIN " + sessionsTable + " on " + sessionIDColumn + "=" + columnSessionID + " JOIN " + sessionsTable + " on " + sessionIDColumn + "=" + columnSessionID +
" WHERE " + sessionServerIDColumn + "=" + db.getServerTable().statementSelectServerID " WHERE " + sessionServerIDColumn + "=" + db.getServerTable().statementSelectServerID +
" GROUP BY " + columnWorldId
); );
statement.setString(1, serverUUID.toString()); statement.setString(1, serverUUID.toString());
set = statement.executeQuery(); set = statement.executeQuery();
@ -219,7 +220,8 @@ public class WorldTimesTable extends UserIDTable {
worldNameColumn + worldNameColumn +
" FROM " + tableName + " FROM " + tableName +
" JOIN " + worldTable + " on " + worldIDColumn + "=" + columnWorldId + " JOIN " + worldTable + " on " + worldIDColumn + "=" + columnWorldId +
" WHERE " + columnUserID + "=" + usersTable.statementSelectID " WHERE " + columnUserID + "=" + usersTable.statementSelectID +
" GROUP BY " + columnWorldId
); );
statement.setString(1, uuid.toString()); statement.setString(1, uuid.toString());
set = statement.executeQuery(); set = statement.executeQuery();