Last modified: 2014-02-01 09:07: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 T52155, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50155 - SQLite 3.x / 1.8.0.5 + 1.9 / SMW_SQLStore3_Queries / CREATE TEMPORARY TABLE ... "ENGINE": syntax error
SQLite 3.x / 1.8.0.5 + 1.9 / SMW_SQLStore3_Queries / CREATE TEMPORARY TABLE ....
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
master
All Linux
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-25 06:38 UTC by Vitaly
Modified: 2014-02-01 09:07 UTC (History)
4 users (show)

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


Attachments
wiki.log (24.03 KB, application/octet-stream)
2013-06-25 06:38 UTC, Vitaly
Details

Description Vitaly 2013-06-25 06:38:25 UTC
Created attachment 12630 [details]
wiki.log

Hello,
System info:
Linux #37-Ubuntu SMP Wed Apr 25 12:51:49 UTC 2012 i686 i686 i386 GNU/Linux
Database: SQLite 3.x

Error: when make #ask query like {{#ask: [[Category:Programming language]] }}

Page returns: 
CREATE TEMPORARY TABLE t1( id INT UNSIGNED KEY ) ENGINE=MEMORY 
SMW::executeHierarchyQuery
1: near "ENGINE": syntax error

wiki.log: in attachment
Comment 1 Vitaly 2013-06-25 07:02:42 UTC
MediaWiki: 1.21.1 
PHP: 5.3.10-1ubuntu3.6
Comment 2 MWJames 2013-06-25 10:58:48 UTC
What SMW version you are running? The error is executed by [1].

Travs-ci.org[2] didn't show any issues with SQLite when running the unit tests but then again no one has written any "real" tests to cover SMW_SQLStore3_Queries, so it could well be an issue (well it is an issue otherwise the error would't have appeared).

[1] includes/storage/SQLStore/SMW_SQLStore3_Queries.php:                            $this->executeHierarchyQuery( $query );

[1] https://travis-ci.org/wikimedia/mediawiki-extensions-SemanticMediaWiki

PS: I changed the title to reflect the real issue.
Comment 3 Vitaly 2013-06-25 12:32:24 UTC
Version of Semantic MediaWiki is 1.8.0.5
Comment 4 MWJames 2013-06-25 12:38:00 UTC
SQLite was only fixed for SMW 1.9+ (because unit tests on Jenkins run on SQLite) therefore you might try the current master.

It is unlikely that fixes for SQLite on 1.8 will be provided.
Comment 5 Vitaly 2013-06-25 12:57:21 UTC
Checkout last SMW from git. 
I tested construction {{#ask: [[Category: *** ]] }} with different categories. The problem occurs when category have nested categories.
Comment 6 MWJames 2014-02-01 09:07:23 UTC
Has been solved by [0] and will be deployed with 1.9.0.3.

[1] is used during regression testing (when running phpunit) and can be used locally to verify that the issue has been solved.  

[0] https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/151

[1] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/tests/phpunit/regression/data/CategoryInstanceAndCategoryHierarchyRegressionTest-Mw-1-19-7.xml

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


Navigation
Links