Fixed issue #9025: Error showing pie chart in statistics when using MS SQL server