fix DiskSpace summing when Nulls are present

This commit is contained in:
Isaac Connor 2018-02-07 08:02:49 -05:00
parent 069d53a9a0
commit 0d5c8f385f
1 changed files with 1 additions and 1 deletions

View File

@ -46,4 +46,4 @@ FOR EACH ROW
//
UPDATE Storage SET DiskSpace=(SELECT SUM(DiskSpace) FROM Events WHERE StorageId=Storage.Id)//
UPDATE Storage SET DiskSpace=(SELECT SUM(COALESCE(DiskSpace,0)) FROM Events WHERE StorageId=Storage.Id)//