From c8be63042d92ae5ab9ab45e5e2e9e850c2f95266 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sat, 8 Jan 2011 16:01:31 +0000 Subject: [PATCH] Followup r74298: add ORDER BY wl_namespace, wl_title to the query in WatchlistEditor.php , rather than conditionally adding an ORDER BY that only seems to play nice on Postgres --- includes/WatchlistEditor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/WatchlistEditor.php b/includes/WatchlistEditor.php index a1a33640da..b5a994d5e8 100644 --- a/includes/WatchlistEditor.php +++ b/includes/WatchlistEditor.php @@ -213,7 +213,7 @@ class WatchlistEditor { array( 'wl_namespace', 'wl_title', 'page_id', 'page_len', 'page_is_redirect', 'page_latest' ), array( 'wl_user' => $user->getId() ), __METHOD__, - $dbr->implicitOrderby() ? array( ) : array( 'ORDER BY' => 'wl_title' ), + array( 'ORDER BY' => 'wl_namespace, wl_title' ), array( 'page' => array( 'LEFT JOIN', 'wl_namespace = page_namespace AND wl_title = page_title' ) ) ); -- 2.20.1