Last modified: 2010-05-15 15:33:44 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 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