From: Dave Miller Date: Tue, 14 May 2024 06:02:48 +0000 (-0400) Subject: Bug 1896338: properly detect if the DB already exists during setup (#181) X-Git-Tag: bugzilla-5.2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc0cb77cc0b9b3058e1dc210e2dcb0b315bed1d0;p=thirdparty%2Fbugzilla.git Bug 1896338: properly detect if the DB already exists during setup (#181) --- diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index d82610093..8ef3d36fa 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -299,7 +299,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) {