Fix IPAnonPatch on MySQL with sql_mode=only_full_group_by

This commit is contained in:
Rsl1122 2019-07-21 18:55:26 +03:00
parent da61f17b9e
commit bbd9687b49

View File

@ -121,7 +121,7 @@ public class IPAnonPatch extends Patch {
") SELECT " +
identifiers + ", ip, geolocation, MAX(last_used) FROM plan_ips_temp GROUP BY ip, " +
(hasUserIdColumn ? userIdColumn : "uuid") +
", geolocation");
", geolocation, id");
dropTable(tempTableName);
}