Closed Bug 1141770 Opened 9 years ago Closed 9 years ago

merge_users.pl fails if the two accounts have accessed the same bug and is in the bug_interest table

Categories

(bugzilla.mozilla.org :: MyDashboard, defect)

Production
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dkl, Assigned: dkl)

Details

Attachments

(1 file)

A failed merge from bug 1141199 generated this error:

DBD::mysql::st execute failed: Duplicate entry '1055699-437955' for key 'bug_interest_idx' [for Statement "UPDATE bug_interest
                                            SET user_id = ?
                                          WHERE user_id = ?" with ParamValues: 0=437955, 1=284198] at ./contrib/merge-users.pl line 236
Attached patch 1141770_1.patchSplinter Review
Assignee: nobody → dkl
Status: NEW → ASSIGNED
Attachment #8575591 - Flags: review?(dylan)
Comment on attachment 8575591 [details] [diff] [review]
1141770_1.patch

Review of attachment 8575591 [details] [diff] [review]:
-----------------------------------------------------------------

r=dylan

I can't help but think I should have written test cases for bug_interest. :-/
Attachment #8575591 - Flags: review?(dylan) → review+
Thanks

To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   926e010..f45322b  master -> master
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: