# HG changeset patch # User phirox # Date 1263161692 18000 # Node ID db2edac4e5a7968507d6b5e2a5528dd5b1be882c # Parent 488294ceee13be5d1eb9ad326bf7f5672cea2206 Fix: add author_uid in GROUP BY in LogDisplay for PostgreSQL compatibility diff -r 488294ceee13 -r db2edac4e5a7 includes/log.php --- a/includes/log.php Sun Jan 10 17:13:03 2010 -0500 +++ b/includes/log.php Sun Jan 10 17:14:52 2010 -0500 @@ -165,7 +165,7 @@ . " LEFT JOIN " . table_prefix . "users AS u\n" . " ON ( u.user_id = l.author_uid OR u.user_id IS NULL )\n" . " WHERE log_type = 'page' AND is_draft != 1$where_extra\n" - . " GROUP BY log_id, action, page_id, namespace, page_text, author, time_id, edit_summary, minor_edit\n" + . " GROUP BY log_id, action, page_id, namespace, page_text, author, author_uid, username, time_id, edit_summary, minor_edit\n" . " ORDER BY time_id DESC $limit;"; return $sql;