[HOME PAGE] [STORES] [CLASSICISTRANIERI.COM] [FOTO] [YOUTUBE CHANNEL]


Bug 392 – Creative Commons metadata fails on PostgreSQL

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.


Contents Listing Alphabetical by Author:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Unknown Other

Contents Listing Alphabetical by Title:
# A B C D E F G H I J K L M N O P Q R S T U V W Y Z Other

Medical Encyclopedia

Browse by first letter of topic:


A-Ag Ah-Ap Aq-Az B-Bk Bl-Bz C-Cg Ch-Co
Cp-Cz D-Di Dj-Dz E-Ep Eq-Ez F G
H-Hf Hg-Hz I-In Io-Iz J K L-Ln
Lo-Lz M-Mf Mg-Mz N O P-Pl Pm-Pz
Q R S-Sh Si-Sp Sq-Sz T-Tn To-Tz
U V W X Y Z 0-9

Biblioteca - SPANISH

Biblioteca Solidaria - SPANISH

Bugzilla

Ebooks Gratuits

Encyclopaedia Britannica 1911 - PDF

Project Gutenberg: DVD-ROM 2007

Project Gutenberg ENGLISH Selection

Project Gutenberg SPANISH Selection

Standard E-books

Wikipedia Articles Indexes

Wikipedia for Schools - ENGLISH

Wikipedia for Schools - FRENCH

Wikipedia for Schools - SPANISH

Wikipedia for Schools - PORTUGUESE

Wikipedia 2016 - FRENCH

Wikipedia HTML - CATALAN

Wikipedia Picture of the Year 2006

Wikipedia Picture of the Year 2007

Wikipedia Picture of the Year 2008

Wikipedia Picture of the Year 2009

Wikipedia Picture of the Year 2010

Wikipedia Picture of the Year 2011