aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-01-25 23:43:46 +0000
committermkanat%bugzilla.org <>2007-01-25 23:43:46 +0000
commit27b4f887d24f0a667a4aab83276e7c93cd726e10 (patch)
treefaf93ee5afbf4c4f4eef1e2d789da5741c078987
parentBug 363717: Cloning a bug results in HTML-filtered text in initial descriptio... (diff)
downloadbugzilla-27b4f887d24f0a667a4aab83276e7c93cd726e10.tar.gz
bugzilla-27b4f887d24f0a667a4aab83276e7c93cd726e10.tar.bz2
bugzilla-27b4f887d24f0a667a4aab83276e7c93cd726e10.zip
Bug 368147: Upgrade from 2.16 and earlier does not work with DBD::mysql 4.0
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
-rw-r--r--Bugzilla/Install/DB.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm
index aa8e52109..00032d15b 100644
--- a/Bugzilla/Install/DB.pm
+++ b/Bugzilla/Install/DB.pm
@@ -1381,7 +1381,8 @@ sub _convert_groups_system_from_groupset {
# so all unique keys are removed first and then added back in
$dbh->bz_drop_index('groups', 'groups_bit_idx');
$dbh->bz_drop_index('groups', 'groups_name_idx');
- if ($dbh->primary_key(undef, undef, 'groups')) {
+ my @primary_key = $dbh->primary_key(undef, undef, 'groups');
+ if (@primary_key) {
$dbh->do("ALTER TABLE groups DROP PRIMARY KEY");
}