
nospam at vyznev
Jul 22, 2008, 4:14 PM
Post #3 of 4
(489 views)
Permalink
|
|
Re: [MediaWiki-CVS] SVN: [37927] trunk/phase3
[In reply to]
|
|
Ilmari Karonen wrote: > Simetrical wrote: >> On Tue, Jul 22, 2008 at 6:37 PM, <vyznev [at] svn> wrote: >>> + // need to resort and relimit after union >>> + $sql = "(" . implode( ") UNION (", $subsql ) . ") ORDER BY rc_timestamp DESC LIMIT {$limit}"; >> >> Does this actually work in MySQL 4? I think you need to retrieve them >> all and do the ordering in PHP, the way it's done in WhatLinksHere. > > Well, Special:RecentChanges already uses a similar trick (grep for > "($sqlNew) UNION ($sqlOld)"), so I assumed it works. Haven't actually > tested it on MySQL 4, though. Just dug through the history, and the use of "UNION" in Recentchanges goes back to r34710 committed by aaron on May 13. So I suppose it may have been broken since then, but it sounds unlikely. -- Ilmari Karonen _______________________________________________ Wikitech-l mailing list Wikitech-l [at] lists https://lists.wikimedia.org/mailman/listinfo/wikitech-l
|