Last modified: 2012-08-04 20:48:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 14577 - Getting IPs of User fails with PostgreSQL
Getting IPs of User fails with PostgreSQL
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
CheckUser (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: postgres
  Show dependency treegraph
 
Reported: 2008-06-18 07:35 UTC by OverlordQ
Modified: 2012-08-04 20:48 UTC (History)
1 user (show)

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


Attachments

Description OverlordQ 2008-06-18 07:35:55 UTC
When performing a lookup to find the IPs of a given user, the following database error occurs:

A database error has occurred Query: SELECT cuc_ip,cuc_ip_hex, COUNT(*) AS count, MIN(cuc_timestamp) AS first, MAX(cuc_timestamp) AS last FROM cu_changes WHERE cuc_user = 1 GROUP BY cuc_ip ORDER BY last DESC Function: CheckUser::doUserIPsRequest Error: 1 ERROR: column "cu_changes.cuc_ip_hex" must appear in the GROUP BY clause or be used in an aggregate function

Backtrace:

#0 /home/wiki/includes/db/Database.php(562): DatabasePostgres->reportQueryError('ERROR: column ...', 1, 'SELECT cuc_ip,c...', 'CheckUser::doUs...', false)
#1 /home/wiki/extensions/CheckUser/CheckUser_body.php(658): Database->query('SELECT cuc_ip,c...', 'CheckUser::doUs...')
#2 /home/wiki/extensions/CheckUser/CheckUser_body.php(83): CheckUser->doUserIPsRequest('OverlordQ', 'Test')
#3 /home/wiki/includes/SpecialPage.php(533): CheckUser->execute(NULL)
#4 /home/wiki/includes/Wiki.php(224): SpecialPage::executePath(Object(Title))
#5 /home/wiki/includes/Wiki.php(55): MediaWiki->initializeSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
#6 /home/wiki/index.php(92): MediaWiki->initialize(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
#7 {main}
Comment 1 Aaron Schulz 2008-06-18 07:41:13 UTC
Fixed in r36408

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


Navigation
Links