Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When computing SUM & AVG functions, sqlserver uses the column datatype, which is INT. This datatype can be overflowed when a big number of issues are included, since we are adding the total number of seconds. In that case, use an explicit cast to BIGINT to avoid that error. Other databases are not affected because they use a runtime data type allowing bigger integers. The stats array is initialized to zero, to return a properly formatted value array when there aren't any issues. Fixes #25781 PR #1516
- Loading branch information