revert to left join
This commit is contained in:
parent
e7dfe7d25e
commit
71784f4123
1 changed files with 2 additions and 2 deletions
|
|
@ -231,8 +231,8 @@ set comment_score = cd.score
|
|||
coalesce(sum(cl.score),0) as score
|
||||
-- User join because comments could be empty
|
||||
from person u
|
||||
inner join comment c on u.id = c.creator_id
|
||||
inner join comment_like cl on c.id = cl.comment_id
|
||||
left join comment c on u.id = c.creator_id
|
||||
left join comment_like cl on c.id = cl.comment_id
|
||||
where u.id = OLD.creator_id
|
||||
group by u.id
|
||||
) cd
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue