Skip to content

Commit

Permalink
fix(android): coalesce null member names
Browse files Browse the repository at this point in the history
  • Loading branch information
autoreleasefool committed Sep 19, 2024
1 parent 5050445 commit fda8b13
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ abstract class TeamDao : LegacyMigratingDao<TeamEntity> {
teams.name AS name,
AVG(games.score) as average,
MAX(series.date) as lastSeriesDate,
(
SELECT GROUP_CONCAT(bowlers.name, ';')
FROM team_bowler
LEFT JOIN bowlers
ON bowlers.id = team_bowler.bowler_id
WHERE team_bowler.team_id = teams.id
COALESCE(
(
SELECT GROUP_CONCAT(bowlers.name, ';')
FROM team_bowler
LEFT JOIN bowlers
ON bowlers.id = team_bowler.bowler_id
WHERE team_bowler.team_id = teams.id
),
''
) as members
FROM teams
LEFT JOIN team_bowler
Expand Down

0 comments on commit fda8b13

Please sign in to comment.