Last modified: 2010-05-15 15:33:04 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 392 - Creative Commons metadata fails on PostgreSQL
Creative Commons metadata fails on PostgreSQL
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.4.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: postgres
  Show dependency treegraph
 
Reported: 2004-09-06 09:16 UTC by Brion Vibber
Modified: 2010-05-15 15:33 UTC (History)
1 user (show)

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


Attachments

Description Brion Vibber 2004-09-06 09:16:26 UTC
The query in Article::getContents() used for the metadata fails on PostgreSQL due to a bad GROUP BY.

<b>Warning</b>:  pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR:  column &quot;
old.old_user_text&quot; must appear in the GROUP BY clause or be used in an aggregate function in <b>/var/www/html/gres/
includes/DatabasePostgreSQL.php</b> on line <b>96</b><br />

A database error has occurred
Query: SELECT old_user, old_user_text, user_real_name, MAX(old_timestamp) as timestamp
			FROM "old" LEFT JOIN "user" ON old_user = user_id
			WHERE old_namespace = 1
			AND old_title = '?efpa?o'
			AND old_user != 1
			GROUP BY old_user
			ORDER BY timestamp DESC 
Function: Article::getContributors
Error: 1 ERROR:  column "old.old_user_text" must appear in the GROUP BY clause or be used in an aggregate function

<p>Backtrace:</p>
<ul>
<li>DatabasePostgreSQL.php line 366 calls wfDebugDieBacktrace()</li>
<li>Database.php line 297 calls DatabasePostgreSQL::reportQueryError()</li>
<li>Article.php line 715 calls DatabasePostgreSQL::query()</li>
<li>Metadata.php line 139 calls Article::getContributors()</li>
<li>Metadata.php line 49 calls dcBasics()</li>
<li>index.php line 149 calls wfCreativeCommonsRdf()</li>
Comment 1 Brion Vibber 2004-09-06 10:07:32 UTC
Still failing:

<b>Warning</b>:  pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR:  column &quot;
user.user_real_name&quot; must appear in the GROUP BY clause or be used in an aggregate function in <b>/var/www/html/gres/includes/
DatabasePostgreSQL.php</b> on line <b>96</b><br />

A database error has occurred
Query: SELECT old_user, old_user_text, user_real_name, MAX(old_timestamp) as timestamp
			FROM "old" LEFT JOIN "user" ON old_user = user_id
			WHERE old_namespace = 1
			AND old_title = '?efpa?o'
			AND old_user != 1
			GROUP BY old_user, old_user_text
			ORDER BY timestamp DESC 
Function: Article::getContributors
Error: 1 ERROR:  column "user.user_real_name" must appear in the GROUP BY clause or be used in an aggregate function

<p>Backtrace:</p>
<ul>
<li>DatabasePostgreSQL.php line 370 calls wfDebugDieBacktrace()</li>
<li>Database.php line 297 calls DatabasePostgreSQL::reportQueryError()</li>
<li>Article.php line 715 calls DatabasePostgreSQL::query()</li>
<li>Metadata.php line 139 calls Article::getContributors()</li>
<li>Metadata.php line 49 calls dcBasics()</li>
<li>index.php line 149 calls wfCreativeCommonsRdf()</li>
Comment 2 Domas Mituzas 2004-09-06 10:19:34 UTC
should be working right now

(In reply to comment #1)
> Still failing:
> 

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


Navigation
Links