https://bugzilla.wikimedia.org/show_bug.cgi?id=19088
Web browser: ---
Summary: moving a protected page causes a database error when
using postgres
Product: MediaWiki
Version: 1.16-svn
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: Normal
Component: Page protection
AssignedTo: [email protected]
ReportedBy: [email protected]
when moving a page that is protected, the following error occurs:
A database error has occurred
Query: INSERT IGNORE INTO page_restrictions
(pr_page,pr_type,pr_level,pr_cascade,pr_user,pr_expiry) SELECT
745,pr_type,pr_level,pr_cascade,pr_user,pr_expiry FROM page_restrictions WHERE
pr_page = '657'
Function: Title::moveTo
Error: 1 ERROR: syntax error at or near "IGNORE"
LINE 1: INSERT /* Title::moveTo Daniel */ IGNORE INTO page_restricti...
^
Backtrace:
#0 /www/wiki.toolserver.org/w/includes/db/Database.php(616):
DatabasePostgres->reportQueryError('ERROR: syntax ...', 1, 'INSERT IGNORE
I...', 'Title::moveTo', false)
#1 /www/wiki.toolserver.org/w/includes/db/Database.php(1809):
Database->query('INSERT IGNORE I...', 'Title::moveTo')
#2 /www/wiki.toolserver.org/w/includes/Title.php(2715):
Database->insertSelect('page_restrictio...', 'page_restrictio...', Array,
Array, 'Title::moveTo', Array)
#3 /www/wiki.toolserver.org/w/includes/specials/SpecialMovepage.php(338):
Title->moveTo(Object(Title), true, '', true)
#4 /www/wiki.toolserver.org/w/includes/specials/SpecialMovepage.php(46):
MovePageForm->doSubmit()
#5 [internal function]: wfSpecialMovepage(NULL, Object(UnlistedSpecialPage))
#6 /www/wiki.toolserver.org/w/includes/SpecialPage.php(771):
call_user_func('wfSpecialMovepa...', NULL, Object(UnlistedSpecialPage))
#7 /www/wiki.toolserver.org/w/includes/SpecialPage.php(559):
SpecialPage->execute(NULL)
#8 /www/wiki.toolserver.org/w/includes/Wiki.php(229):
SpecialPage::executePath(Object(Title))
#9 /www/wiki.toolserver.org/w/includes/Wiki.php(59):
MediaWiki->initializeSpecialCases(Object(Title), Object(OutputPage),
Object(WebRequest))
#10 /www/wiki.toolserver.org/w/index.php(116):
MediaWiki->initialize(Object(Title), NULL, Object(OutputPage), Object(User),
Object(WebRequest))
#11 {main}
Version info:
MediaWiki 1.15alpha (r48811)
PHP 5.2.9 (cgi-fcgi)
PostgreSQL 8.3.5
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l