Closed
Bug 1056087
Opened 10 years ago
Closed 10 years ago
contrib/merge-users.pl fails if there are no duplicate bug_user_last_visit rows
Categories
(Bugzilla :: Administration, task, P1)
Tracking
()
RESOLVED
FIXED
Bugzilla 5.0
People
(Reporter: glob, Assigned: dylan)
References
Details
(Keywords: regression)
Attachments
(1 file)
1.02 KB,
patch
|
glob
:
review+
|
Details | Diff | Splinter Review |
contrib/merge-users.pl fails if there are no duplicate bug_user_last_visit rows:
DBD::mysql::db do failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 [for Statement "DELETE FROM bug_user_last_visit WHERE id IN () "] at ./contrib/merge-users.pl line 179.
Comment 1•10 years ago
|
||
$dbh->do("DELETE FROM bug_user_last_visit WHERE " . $dbh->sql_in('id', $dupe_ids));
It should only be called if @$dupe_ids is not empty.
Depends on: 1021218
Keywords: regression
OS: Mac OS X → All
Hardware: x86 → All
Target Milestone: --- → Bugzilla 5.0
Version: unspecified → 4.5.5
Assignee | ||
Updated•10 years ago
|
Assignee: administration → dylan
Status: NEW → ASSIGNED
Priority: -- → P1
Assignee | ||
Comment 2•10 years ago
|
||
This adds a check to only delete if there are duplicate ids, it also reformats one line that was contrary to the bugzilla code guidelines (line length limit: 80 chars)
Attachment #8476716 -
Flags: review?(glob)
Comment on attachment 8476716 [details] [diff] [review]
bug-1056087-v1.patch
Review of attachment 8476716 [details] [diff] [review]:
-----------------------------------------------------------------
r=glob by inspection
Attachment #8476716 -
Flags: review?(glob) → review+
Assignee | ||
Comment 4•10 years ago
|
||
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
0922b44..8234603 master -> master
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
b086258..f95d295 master -> master
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•