Closed Bug 346375 Opened 18 years ago Closed 18 years ago

Move the code that gets the initial $dbh into Bugzilla::DB

Categories

(Bugzilla :: Installation & Upgrading, enhancement)

2.23
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file)

The code around:

# Check if we have access to the --DATABASE--

Should be moved into a subroutine in a module
Actually, it makes more sense to put it into Bugzilla::DB, where the other DB-related code already is.
Status: NEW → ASSIGNED
Summary: Move the code that gets the initial $dbh into Bugzilla::Install::DB → Move the code that gets the initial $dbh into Bugzilla::DB
Attached patch v1Splinter Review
Okay, here's the code that does it.

while I wrote the code, I also fixed it up a lot. It turns out that we were throwing our "unfriendly" DB error message when we couldn't connect to the DB, which probably accounts for a lot of support questions on the list. We now throw the more "friendly" checksetup-specific error when we fail to connect.

And, of course, the code is a zillion times cleaner. :-)
I've tested all the code paths, and I'm the module owner. Requesting approval directly.
Flags: approval?
Depends on: 346344
Flags: approval? → approval+
Checking in checksetup.pl;
/cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v  <--  checksetup.pl
new revision: 1.522; previous revision: 1.521
done
Checking in Bugzilla/Config.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Config.pm,v  <--  Config.pm
new revision: 1.66; previous revision: 1.65
done
Checking in Bugzilla/DB.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB.pm,v  <--  DB.pm
new revision: 1.80; previous revision: 1.79
done
Checking in Bugzilla/Install/Requirements.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Install/Requirements.pm,v  <--  Requirements.pm
new revision: 1.11; previous revision: 1.10
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
*** Bug 344647 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: