Last modified: 2007-03-20 04:02:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T9186, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7186 - Group by clause giving error for Postgres in SpecialListusers.php
Group by clause giving error for Postgres in SpecialListusers.php
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.8.x
PC Linux
: Normal normal with 1 vote (vote)
: ---
Assigned To: Robert Treat
:
: 7399 9345 (view as bug list)
Depends on:
Blocks: postgres
  Show dependency treegraph
 
Reported: 2006-08-31 14:42 UTC by Greg Sabino Mullane
Modified: 2007-03-20 04:02 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Fix the group by issues, also clean up the SQL a little bit. (835 bytes, patch)
2006-09-02 16:46 UTC, Robert Treat
Details

Description Greg Sabino Mullane 2006-08-31 14:42:00 UTC
Fix errant group by clause in SpecialListusers.php:

A database error has occurred Query: SELECT 'Listusers' as type, 2 AS
namespace, user_name AS title, user_name as value, user_id,
COUNT(ug_group) as numgroups FROM mwuser LEFT JOIN user_groups ON
user_id=ug_user GROUP BY user_name ORDER BY value LIMIT 50 OFFSET 0
Function: Error: 1 ERROR: column "mwuser.user_id" must appear in the
GROUP BY clause or be used in an aggregate function
Comment 1 Robert Treat 2006-09-02 16:46:13 UTC
Created attachment 2299 [details]
Fix the group by issues, also clean up the SQL a little bit.
Comment 2 Greg Sabino Mullane 2006-09-02 21:45:43 UTC
Patch applied, subversion 16348.
Comment 3 Tim Starling 2006-09-05 07:05:06 UTC
"Fix" this bug again without testing it on MySQL and I'll remove your svn
access. This is the second time we've had severe performance problems on
Wikimedia because of this kind of postgresql compatibility patch.
Comment 4 Greg Sabino Mullane 2006-09-24 20:54:08 UTC
*** Bug 7399 has been marked as a duplicate of this bug. ***
Comment 5 Greg Sabino Mullane 2006-10-02 23:13:58 UTC
Fixed in version 16348: made special exception for MySQL's behavior.
Comment 6 River Tarnell 2007-03-20 04:02:54 UTC
*** Bug 9345 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links