Fix metrics and notifications when sql_mode is only_full_group_by (since MySQL 5.7/8.0)

main
Igor Scheller 3 years ago
parent fb573fd1d9
commit b345bf4ea7

@ -60,7 +60,7 @@ function User_unconfirmed_AngelTypes($userId)
AND `UserAngelTypes`.`supporter`=TRUE AND `UserAngelTypes`.`supporter`=TRUE
AND `AngelTypes`.`restricted`=TRUE AND `AngelTypes`.`restricted`=TRUE
AND `UnconfirmedMembers`.`confirm_user_id` IS NULL AND `UnconfirmedMembers`.`confirm_user_id` IS NULL
GROUP BY `UserAngelTypes`.`angeltype_id`, `UserAngelTypes`.`id` GROUP BY `UserAngelTypes`.`angeltype_id`, `UserAngelTypes`.`id`, AngelTypes.name, UserAngelTypes.user_id, UserAngelTypes.confirm_user_id, UserAngelTypes.supporter
ORDER BY `AngelTypes`.`name` ORDER BY `AngelTypes`.`name`
', [$userId]); ', [$userId]);
} }

@ -309,7 +309,7 @@ class Stats
$this->workSecondsQuery($done, $freeloaded), $this->workSecondsQuery($done, $freeloaded),
'UID', 'UID',
'SUM(end - start)', 'SUM(end - start)',
'end - start' 'SUM(end - start)'
); );
} }
@ -364,7 +364,7 @@ class Stats
Worklog::query(), Worklog::query(),
'user_id', 'user_id',
'SUM(hours * 60 * 60)', 'SUM(hours * 60 * 60)',
'hours * 60 * 60' 'SUM(hours * 60 * 60)'
); );
} }

Loading…
Cancel
Save