Last modified: 2010-05-15 15:33:44 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 T4100, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2100 - PostgreSQL: Site stats broken
PostgreSQL: Site stats broken
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (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: 2005-05-07 07:09 UTC by Matt Adam
Modified: 2010-05-15 15:33 UTC (History)
0 users

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


Attachments

Description Matt Adam 2005-05-07 07:09:40 UTC
I had mediawiki working fine with 1.4.1.  I upgraded to 1.4.4, updated my
site_stats table to the new definition, and now get the error logged below.  I
don't think pg supports LIMIT clauses in UPDATE commands.  Removing the LIMIT
clause in SiteStatsUpdate.php fixed this for me.


Warning: pg_query(): Query failed: ERROR: syntax error at or near "LIMIT" at
character 89 in /home/www/includes/DatabasePostgreSQL.php on line 99
A database error has occurred Query: UPDATE "site_stats" SET
ss_total_views=ss_total_views+1 LIMIT 1 Function: SiteStatsUpdate::doUpdate
Error: 1 ERROR: syntax error at or near "LIMIT" at character 89

Backtrace:

    * GlobalFunctions.php line 507 calls wfbacktrace()
    * DatabasePostgreSQL.php line 419 calls wfdebugdiebacktrace()
    * Database.php line 333 calls databasepostgresql::reportqueryerror()
    * SiteStatsUpdate.php line 123 calls databasepostgresql::query()
    * index.php line 211 calls sitestatsupdate::doupdate()
Comment 1 Brion Vibber 2006-01-22 04:19:12 UTC
Restored from flood attack.

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


Navigation
Links