Author: dj.bauch
Description:
While working on SQL SERVER support for 1.19alpha (Bug 9767), which is mostly working, I discovered an issue with at least one of the special pages. Special:ListRedirects generates SQL that looks like (LIMIT/TOP clauses, which differ between MySQL and SQL Server, were removed):
SELECT tl_namespace AS namespace,tl_title AS title,
COUNT(*) AS value FROM templatelinks
WHERE tl_namespace = '10'
GROUP BY namespace, title ORDER BY value DESC
It should look like
SELECT tl_namespace AS namespace,tl_title AS title,
COUNT(*) AS value FROM templatelinks
WHERE tl_namespace = '10'
GROUP BY tl_namespace, tl_title ORDER BY value DESC
The former syntax is peculiar to MySQL, while the latter syntax is correct on both MySQL and SQL Server.
Version: 1.18.x
Severity: normal
OS: Windows 7
Platform: PC