Last modified: 2012-02-11 18:27:45 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 T33153, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31153 - SMW_setup --delete fails for postgresql
SMW_setup --delete fails for postgresql
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
PC Windows ME
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-25 13:20 UTC by John Morton
Modified: 2012-02-11 18:27 UTC (History)
2 users (show)

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


Attachments

Description John Morton 2011-09-25 13:20:55 UTC
This happens:

Deleting all database content and tables generated by SMW ...

Warning: pg_query(): Query failed: ERROR:  syntax error at or near "TABLEsmw_ids"
LINE 1: DROP /* SMWSQLStore2::drop 127.0.0.1 */ TABLEsmw_ids
                                                ^ in /home/cffc/webapps/htdocs/w/includes/db/DatabasePostgres.php on line 237
A database query syntax error has occurred.
The last attempted database query was:
"DROP TABLEsmw_ids"
from within function "SMWSQLStore2::drop".
Database returned error "1: ERROR:  syntax error at or near "TABLEsmw_ids"
LINE 1: DROP /* SMWSQLStore2::drop 127.0.0.1 */ TABLEsmw_ids
                                                ^"
I dropped a space in front of 'DROP TABLE' in the drop() method of include/storage/SMW_SQLStore2.php on 1.6.1, and that fixed it.
Comment 1 Markus Krötzsch 2012-02-11 18:27:45 UTC
Should be fixed in r111252 (you may or may not want to try it ;-).

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


Navigation
Links