Last modified: 2014-02-12 23:32: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 T47153, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45153 - SQL syntax problem in patch-rev_sha1.sql due to "magic quotes" enabled in PHP
SQL syntax problem in patch-rev_sha1.sql due to "magic quotes" enabled in PHP
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.20.x
PC Windows Server 2008
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-19 15:23 UTC by jurgen.henn
Modified: 2014-02-12 23:32 UTC (History)
3 users (show)

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


Attachments

Description jurgen.henn 2013-02-19 15:23:53 UTC
Installed new version of mediawiki and ran update.sql, which produced a syntax error in file patch-rev_sha1.sql
Opened the file and saw that the ADD command had no "COLUMN"

So I ran 
ADD COLUMN rev_sha1 varbinary(32) NOT NULL default '';
from PHPMyAdmin, which added the new column and that got everything working again.

Original SQL command that produced the error:
ADD rev_sha1 varbinary(32) NOT NULL default '';

Hope this is helpful.
Comment 1 db [inactive,noenotif] 2013-02-19 20:38:04 UTC
Which database you are using in which version?

COLUMN is optional in mysql (at least in 5.1)
Comment 2 jurgen.henn 2013-02-25 20:00:30 UTC
Nevermind ... someone had re-enabled "magic quotes" in PHP. That was what caused the syntax errors. Sorry about that.
Comment 3 db [inactive,noenotif] 2013-03-02 09:51:52 UTC
Follow up comment 2, this is INVALID

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


Navigation
Links