Last modified: 2013-01-09 01:42:23 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 T31477, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29477 - Patch: Sqlite support
Patch: Sqlite support
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-reviewed
Depends on: 29476
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-18 12:31 UTC by hofoen
Modified: 2013-01-09 01:42 UTC (History)
4 users (show)

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


Attachments
SQlite Support Patch (9.97 KB, patch)
2011-06-18 12:31 UTC, hofoen
Details

Description hofoen 2011-06-18 12:31:25 UTC
Created attachment 8676 [details]
SQlite Support Patch

This patch adds Sqlite support to Semantic Mediawiki.
Comment 1 Max Semenik 2011-06-18 12:44:11 UTC
:facepalm: SMW mostly doesn't use proper DB abstraction functions?
Comment 2 Jeroen De Dauw 2011-06-18 13:56:08 UTC
Thanks a lot for the patch, I'll merge it in soonish :)

@Max: historical reasons, the db abstraction wasn't really up to it back then or something like that. The code should definitely be changed to make use of the db functions where possible, but this is a bunch of work, so any help on that would be appreciated :)
Comment 3 Max Semenik 2011-06-18 13:57:13 UTC
In that case, you need to forget about pre-1.16 compat ;)
Comment 4 Jeroen De Dauw 2011-06-18 14:05:15 UTC
Ah damn! The idea is to still support MW 1.15 for now. If this prevents using the generic database functions then that's another reason to discontinue support for it in one of the coming versions. Can you elaborate on what exactly is not supported in pre-1.16, or link to some docs that do?
Comment 5 Max Semenik 2011-06-18 14:06:14 UTC
buildLike()
Comment 6 Jeroen De Dauw 2011-06-18 19:50:21 UTC
Hofoen: I applied your patch, but the SMW setup script still fails for PostGres. To what extend did you get SMW to work with SQLite?

Also, what is this _addition_ for?

'u' => ( ( $wgDBtype == 'postgres' || $wgDBtype == 'sqlite' ) ? 'TEXT' : 'VARCHAR(63) binary' ),
Comment 7 hofoen 2011-06-20 18:03:29 UTC
(In reply to comment #6)
> Hofoen: I applied your patch, but the SMW setup script still fails for
> PostGres. To what extend did you get SMW to work with SQLite?

As far I can see, I tested everything except "concepts" with the Sqlite backend. Two issues are not solved:

* COLUMN DROPs while schema migration, as this is not supported in Sqlite3
* some parts of SMW_SQLStore2::getUnusedPropertiesSpecial are left out for Sqlite

> Also, what is this _addition_ for?
> 'u' => ( ( $wgDBtype == 'postgres' || $wgDBtype == 'sqlite' ) ? 'TEXT' :
> 'VARCHAR(63) binary' ),

I accidently copied this line from SMW 1.5.3, which I had originally patched. It's not necessary any more in the trunk.
Comment 8 Jeroen De Dauw 2011-06-21 18:50:54 UTC
Right. I applied the patch to trunk and observed this:
* Installation of SMW on SQLite MW did not work
* SQL errors on installed SMW on a MySQL MW

So I reverted it for now. Can you get the patch to work with trunk?
Comment 9 Jeroen De Dauw 2011-10-31 01:25:38 UTC
Any progress on this? Else I'm closing the bug.
Comment 10 Sumana Harihareswara 2011-11-14 16:59:26 UTC
hofoen, I'm marking your patch as reviewed per Jeroen's comments.  Do you have time to revise it?  Thanks.
Comment 11 Jeroen De Dauw 2013-01-09 01:42:08 UTC
Guess not :)

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


Navigation
Links