Last modified: 2012-12-18 01:50:18 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 T40235, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38235 - Problems upgrading some extensions under SQLite
Problems upgrading some extensions under SQLite
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
unspecified
Macintosh Mac OS X 10.6
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: sqlite
  Show dependency treegraph
 
Reported: 2012-07-07 18:32 UTC by Brandon Sky
Modified: 2012-12-18 01:50 UTC (History)
7 users (show)

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


Attachments

Description Brandon Sky 2012-07-07 18:32:21 UTC
Running update.php in SQLite under PHP 5.3.0
------------------------------------------------------------------------------

When trying to do so, installing extensions that require database edits, you will get this SQLite syntax error:
Database returned error "1: near "AUTOINCREMENT": syntax error"

This is unusual. Why is this happening?
Comment 1 Jasper Deng 2012-07-07 18:35:19 UTC
(This is not critical).
Comment 2 Platonides 2012-07-07 18:42:55 UTC
Which extensions?
AUTOINCREMENT is a mysql keyword. In SQLite it should be AUTO_INCREMENT. We have code in the Database file to compensate for it, but 
a) Maybe it isn't working.
b) Maybe the extension is doing something wrong (making it incompatible with SQLite)

So, which extension has the bad update ?
Comment 3 Brandon Sky 2012-07-07 18:55:56 UTC
(In reply to comment #2)
> Which extensions?
> AUTOINCREMENT is a mysql keyword. In SQLite it should be AUTO_INCREMENT. We
> have code in the Database file to compensate for it, but 
> a) Maybe it isn't working.
> b) Maybe the extension is doing something wrong (making it incompatible with
> SQLite)
> 
> So, which extension has the bad update ?

Some extensions include AbuseFilter and CheckUser. These extensions are using AUTO_INCREMENT. So what's wrong?
Comment 4 Max Semenik 2012-07-07 19:33:38 UTC
(In reply to comment #2)

> AUTOINCREMENT is a mysql keyword. In SQLite it should be AUTO_INCREMENT. We

Actually, it's vice versa;)
Comment 5 Platonides 2012-07-07 20:18:29 UTC
I was actually thinking that on rereading. I was misled with the syntax error near that problematic keyword.
Brandon, can you provide the full list of your extensions?
Or better yet, disable your extensions and enable them one a time until finding which one is producing that error.
Comment 6 Brandon Sky 2012-07-07 22:13:53 UTC
(In reply to comment #5)
> I was actually thinking that on rereading. I was misled with the syntax error
> near that problematic keyword.
> Brandon, can you provide the full list of your extensions?
> Or better yet, disable your extensions and enable them one a time until finding
> which one is producing that error.

Here are my extensions:
Admin Links
Flagged Revisions
MultipleUpload
Nuke
Password Reset
Renameuser 
Update
User Administration
WebChat
Cite
Countdown
EmbedVideo
InputBox 
ParserFunctions 
SimpleSecurity 
SyntaxHighlight
ConfirmEdit
NewUserMessage
OnlineStatus 
SpamBlacklist
Title Blacklist
Comment 7 Brandon Sky 2012-07-11 18:09:58 UTC
Possible I don't have AUTO_INCREMENT installed?
Comment 8 Jasper Deng 2012-07-11 18:14:09 UTC
That's not something you should have to install.
Comment 9 Brandon Sky 2012-07-13 14:50:50 UTC
(In reply to comment #8)
> That's not something you should have to install.

So then, what's wrong?

I have the same problem with AbuseFilter (bug 38371).
Comment 10 Brandon Sky 2012-07-23 19:41:05 UTC
Here's the problem: AUTO_INCREMENT should not be uppercase.
Comment 11 matanya 2012-07-23 20:05:19 UTC
can you attach the entire log error?
Comment 12 Andre Klapper 2012-12-17 16:12:15 UTC
Brandon: 
Can you please attach the entire log error?
Comment 13 Dereckson 2012-12-18 00:15:35 UTC
AUTO_INCREMENT can be uppercase.
Comment 14 Max Semenik 2012-12-18 01:27:20 UTC
It CaN aLsO bE cAmEl CaSeD, SQL is case-insensitive.
Comment 15 Dereckson 2012-12-18 01:50:18 UTC
Thank you for your bug report.

After a better analysis, it appears some of the extensions you use have a schema written for MySQL and not for SQLite.

Some bugs have already been filed or commented by yourself:
- Bug 37921 - Can't install FlaggedRevs extension with SQLite
- Bug 38371 - Impossible to install AbuseFilter with SQLite 

I'm closing this bug as invalid, as this is more a support request than a specific bugs (a bug is a specific problem related to the product).

If you detect an extension concerned, please open a new bug (one per extension) then add:
- 20257 in the field Blocks
- schema-change in the field keywords

If you need further support (for example, if you wish to migrate your wiki from SQLite to MySQL or have another issues), you can use the support desk on www.mediawiki.org:
http://www.mediawiki.org/wiki/Project:Support_desk

You can also use our IRC channel #mediawiki on irc.freenode.org.

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


Navigation
Links