Last modified: 2006-11-01 21:03:30 UTC
If I remove the category from the redirect at
I get the MySQL error "1062: Duplicate entry '7726156' for key 1 (10.0.0.235)"
from within function "Article::updateRedirectOn" when I try to save. Apparently
some edits to redirects are rejected.
Quick workaround: change the redirect target and remove the category, then
change it back to the original target. Checking the problem.
Created attachment 2615 [details]
Here is a patch for that. I tested it, but not enough. I would test it more
later, if someone else doesn't test and commit it.
Created attachment 2616 [details]
Removing some test code.
Fixed in r17354; simply using REPLACE instead of trying to UPDATE or INSERT.
The previous code failed because the modified row count from UPDATE is 0
if no rows are *changed* -- so it would come back with its own value.
Putting IGNORE on the INSERT would have also worked, but the extra code
path is just silly; prune it out!