fix #17011 Graph « Cumulative by date » is not displayed in Summary > Advanced Summary

This fix an issue in Summary > Advanced Summary with SQL Server
SQL Server fails to execute the query for the first graph (cumulative by date)
This is because it's expecting a parameter of type VARCHAR and receive an integer