mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-06 15:44:49 +08:00
Lowercase join addresses in the pie
This commit is contained in:
parent
36bb989d7c
commit
ff679d626d
@ -197,7 +197,7 @@ public class UserInfoQueries {
|
||||
public static Query<Map<String, Integer>> joinAddresses() {
|
||||
String sql = SELECT +
|
||||
"COUNT(1) as total," +
|
||||
"COALESCE(" + UserInfoTable.JOIN_ADDRESS + ", ?) as address" +
|
||||
"LOWER(COALESCE(" + UserInfoTable.JOIN_ADDRESS + ", ?)) as address" +
|
||||
FROM + '(' +
|
||||
SELECT + DISTINCT +
|
||||
UserInfoTable.USER_UUID + ',' +
|
||||
@ -227,7 +227,7 @@ public class UserInfoQueries {
|
||||
public static Query<Map<String, Integer>> joinAddresses(ServerUUID serverUUID) {
|
||||
String sql = SELECT +
|
||||
"COUNT(1) as total," +
|
||||
"COALESCE(" + UserInfoTable.JOIN_ADDRESS + ", ?) as address" +
|
||||
"LOWER(COALESCE(" + UserInfoTable.JOIN_ADDRESS + ", ?)) as address" +
|
||||
FROM + UserInfoTable.TABLE_NAME +
|
||||
WHERE + UserInfoTable.SERVER_UUID + "=?" +
|
||||
GROUP_BY + "address" +
|
||||
|
Loading…
Reference in New Issue
Block a user