From: Dave Miller Date: Tue, 14 May 2024 06:23:24 +0000 (-0400) Subject: Bug 1896338: properly detect if the DB already exists during setup (#132) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e41274deddc91f69300065c9b34806fe3e494eff;p=thirdparty%2Fbugzilla.git Bug 1896338: properly detect if the DB already exists during setup (#132) --- diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index 268f5cd47..3b9659f31 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -337,7 +337,7 @@ sub bz_create_database { my $dbh; # See if we can connect to the actual Bugzilla database. - my $conn_success = eval { $dbh = connect_main() }; + my $conn_success = eval { $dbh = connect_main(); $dbh->ping(); }; my $db_name = Bugzilla->localconfig->db_name; if (!$conn_success) {