[Fix] Network page registered players SQL

This commit is contained in:
Rsl1122 2018-10-26 13:18:53 +03:00
parent 6aed02e43b
commit 05bb441b2d
3 changed files with 12 additions and 9 deletions

View File

@ -65,7 +65,6 @@
<exclude>org.mockito:*</exclude>
<exclude>org.easymock:*</exclude>
<exclude>junit:*</exclude>
<exclued>org.slf4j:*</exclued>
</excludes>
</artifactSet>
<relocations>
@ -88,6 +87,10 @@
<pattern>com.zaxxer</pattern>
<shadedPattern>plan.com.zaxxer</shadedPattern>
</relocation>
<relocation>
<pattern>org.slf4j</pattern>
<shadedPattern>plan.org.slf4j</shadedPattern>
</relocation>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>com.djrapitops.plan.utilities.metrics</shadedPattern>

View File

@ -268,7 +268,7 @@
<exclude>org.mockito:*</exclude>
<exclude>org.easymock:*</exclude>
<exclude>junit:*</exclude>
<exclued>org.slf4j:*</exclued>
<!--<exclued>org.slf4j:*</exclued>-->
</excludes>
</artifactSet>
<relocations>
@ -291,10 +291,10 @@
<pattern>com.zaxxer</pattern>
<shadedPattern>plan.com.zaxxer</shadedPattern>
</relocation>
<!--<relocation>-->
<!--<pattern>org.slf4j</pattern>-->
<!--<shadedPattern>plan.org.slf4j</shadedPattern>-->
<!--</relocation>-->
<relocation>
<pattern>org.slf4j</pattern>
<shadedPattern>plan.org.slf4j</shadedPattern>
</relocation>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>com.djrapitops.plan.utilities.metrics</shadedPattern>

View File

@ -322,9 +322,9 @@ public class UserInfoTable extends UserIDTable {
}
String sql = "SELECT " + Col.SERVER_ID + ", " +
"COUNT(" + Col.REGISTERED + ") AS count " +
"FROM " + tableName +
"GROUP BY " + Col.SERVER_ID;
"COUNT(" + Col.REGISTERED + ") AS count" +
" FROM " + tableName +
" GROUP BY " + Col.SERVER_ID;
return query(new QueryAllStatement<Map<Integer, Integer>>(sql, 10000) {
@Override
public Map<Integer, Integer> processResults(ResultSet set) throws SQLException {