fix DiskSpace summing when Nulls are present
This commit is contained in:
parent
069d53a9a0
commit
0d5c8f385f
|
@ -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)//
|
||||
|
|
Loading…
Reference in New Issue