https://bugzilla.wikimedia.org/show_bug.cgi?id=61971
Bug ID: 61971
Summary: Special pages generate broken SQL
Product: MediaWiki
Version: 1.22.2
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: Database
Assignee: [email protected]
Reporter: [email protected]
Web browser: ---
Mobile Platform: ---
Special pages (BrokenRedirects, etc) are generating invalid SQL. It seems the
'from' and 'join' clauses are not being constructed correctly. This is with
Postgres as the db if it matters.
Example query generated from brokenredirects below. Note FROM "p2". This
obviously doesn't exist and was supposed to be part of a join that is not
included at all.
SELECT /* BrokenRedirectsPage::reallyDoQuery Mike */
p1.page_namespace AS namespace,
p1.page_title AS title,
p1.page_title AS VALUE,
rd_namespace,
rd_title
FROM "p2"
WHERE (rd_namespace >= 0) AND
(rd_interwiki IS NULL OR rd_interwiki = '') AND
(p2.page_namespace IS NULL)
ORDER BY rd_namespace,rd_title,rd_from
LIMIT 51
FOR UPDATE OF p1
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l