Last modified: 2007-02-28 16:29:58 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 T11104, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 9104 - SQL error on SpecialCategories with PostgreSQL
SQL error on SpecialCategories with PostgreSQL
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
unspecified
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: postgres
  Show dependency treegraph
 
Reported: 2007-02-25 19:56 UTC by Mathias Behrle
Modified: 2007-02-28 16:29 UTC (History)
0 users

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


Attachments

Description Mathias Behrle 2007-02-25 19:56:01 UTC
Perhaps related to 9103, another one (and hopefully the last on Special Pages;-):
Running a fresh install of 1.10A (SVN) on PostgreSQL I get the following
error(s), when
entering Categories in Special Pages:


A database error has occurred Query: SELECT cl_to,count(*) count FROM
categorylinks GROUP BY cl_to ORDER BY cl_to LIMIT 51 Function:
IndexPager::reallyDoQuery (CategoryPager) Error: 1 ERROR: syntax error at or
near "count" at character 72

Backtrace:

#0 /var/www/wiki/includes/Database.php(677):
DatabasePostgres->reportQueryError('ERROR: syntax ...', 1, 'SELECT cl_to,c...',
'IndexPager::rea...', false)
#1 /var/www/wiki/includes/Database.php(1073): Database->query('SELECT
cl_to,c...', 'IndexPager::rea...')
#2 /var/www/wiki/includes/Pager.php(184): Database->select(Array, Array, Array,
'IndexPager::rea...', Array)
#3 /var/www/wiki/includes/Pager.php(102): IndexPager->reallyDoQuery('', 51, true)
#4 /var/www/wiki/includes/Pager.php(306): IndexPager->doQuery()
#5 /var/www/wiki/includes/Pager.php(335): IndexPager->getPagingQueries()
#6 /var/www/wiki/includes/Pager.php(414): IndexPager->getPagingLinks(Array)
#7 /var/www/wiki/includes/SpecialCategories.php(13):
AlphabeticPager->getNavigationBar()
#8 /var/www/wiki/includes/SpecialPage.php(624): wfSpecialCategories(NULL,
Object(SpecialPage))
#9 /var/www/wiki/includes/SpecialPage.php(430): SpecialPage->execute(NULL)
#10 /var/www/wiki/includes/Wiki.php(180): SpecialPage::executePath(Object(Title))
#11 /var/www/wiki/includes/Wiki.php(45):
MediaWiki->initializeSpecialCases(Object(Title), Object(OutputPage),
Object(WebRequest))
#12 /var/www/wiki/index.php(48): MediaWiki->initialize(Object(Title),
Object(OutputPage), Object(User), Object(WebRequest))
#13 {main}
Comment 1 Greg Sabino Mullane 2007-02-28 15:23:58 UTC
Fixed in r20062, thanks for the report.

The fix was changing the query to "count(*) AS count"
Comment 2 Mathias Behrle 2007-02-28 16:29:58 UTC
Works! Thanks a lot!

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


Navigation
Links