Last modified: 2006-07-24 22:21:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 6732 - Import Does Not Work With PostgreSQL
Import Does Not Work With PostgreSQL
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.8.x
PC Linux
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: postgres
  Show dependency treegraph
 
Reported: 2006-07-18 21:44 UTC by Robert Treat
Modified: 2006-07-24 22:21 UTC (History)
1 user (show)

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


Attachments
make errno conditional based on an actual error. (485 bytes, patch)
2006-07-18 21:47 UTC, Robert Treat
Details

Description Robert Treat 2006-07-18 21:44:32 UTC
The import feature (Special::Import) breaks on PostgreSQL with the following error:

A database error has occurred Query: SELECT page_namespace,page_title FROM
templatelinks,page WHERE (page_id=tl_from) AND tl_namespace = '0' AND tl_title =
'Async_Unlisten' Function: Object id #96 Error: 1

Backtrace:

#0 /home/rob/devel/mediawiki/phase3/includes/DatabasePostgres.php(551):
DatabasePostgres::reportQueryError()
#1 /home/rob/devel/mediawiki/phase3/includes/Database.php(1644):
DatabasePostgres->reportQueryError('', 1, 'SELECT page_na...', Object(WikiRevision))
#2 /home/rob/devel/mediawiki/phase3/includes/SpecialImport.php(502):
DatabasePostgres->deadlockLoop(Array)
#3 /home/rob/devel/mediawiki/phase3/includes/SpecialImport.php(732):
WikiImporter->importRevision(Object(WikiRevision), Object(WikiImporter))
#4 /home/rob/devel/mediawiki/phase3/includes/SpecialImport.php(732):
call_user_func_array(Array, Array)
#5 /home/rob/devel/mediawiki/phase3/includes/SpecialImport.php(418):
WikiImporter->out_revision(Resource id #97, 'revision')
#6 /home/rob/devel/mediawiki/phase3/includes/SpecialImport.php(418):
xml_parse(Resource id #97, '<mediawiki xmln...', 1)
#7 /home/rob/devel/mediawiki/phase3/includes/SpecialImport.php(76):
WikiImporter->doImport()
#8 /home/rob/devel/mediawiki/phase3/includes/SpecialPage.php(499):
wfSpecialImport(NULL, Object(SpecialPage))
#9 /home/rob/devel/mediawiki/phase3/includes/SpecialPage.php(368):
SpecialPage->execute(NULL)
#10 /home/rob/devel/mediawiki/phase3/includes/Wiki.php(156):
SpecialPage::executePath(Object(Title))
#11 /home/rob/devel/mediawiki/phase3/includes/Wiki.php(47):
MediaWiki->initializeSpecialCases(Object(Title), Object(OutputPage),
Object(WebRequest))
#12 /home/rob/devel/mediawiki/phase3/index.php(47):
MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User),
Object(WebRequest))
#13 {main}

The problem is that the implementation of lastErrno is hardcoded to always
return 1, which is interpreted as an error even if no error has occured.
Comment 1 Robert Treat 2006-07-18 21:47:11 UTC
Created attachment 2124 [details]
make errno conditional based on an actual error.

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


Navigation
Links