Last modified: 2010-05-15 15:59:49 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 11598 - IF () calls do not work for Postgres
IF () calls do not work for Postgres
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
All All
: High critical (vote)
: ---
Assigned To: Nobody - You can work on this!
: 14337 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2007-10-08 07:59 UTC by Andrew G
Modified: 2010-05-15 15:59 UTC (History)
2 users (show)

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


Description Andrew G 2007-10-08 07:59:41 UTC
in the file:  /var/www/includes/filerepo/LocalFile.php  
there are two locations which must be changed so that the system works with postgres.....

 'fa_storage_key'   => "CASE WHEN img_sha1='' THEN '' ELSE img_sha1||$encExt END",
  //'fa_storage_key'   => "IF(img_sha1='', '', CONCAT(img_sha1,$encExt))",

Comment 1 Andrew G 2007-10-08 08:00:25 UTC
ps included the diff showing what should be corrected
Comment 2 Greg Sabino Mullane 2007-10-09 14:20:40 UTC
Already fixed in r26043


Comment 3 Greg Sabino Mullane 2008-06-04 17:36:50 UTC
*** Bug 14337 has been marked as a duplicate of this bug. ***

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