Bug in generated DATEDIFF call in SQL Server, first parameter is being replaced, leading to invalid SQL #37327 New issue Open Bug ...