Closed
Bug 281364
Opened 20 years ago
Closed 20 years ago
DB-compatibility layer needs error checking for checksetup purposes
Categories
(Bugzilla :: Bugzilla-General, enhancement)
Tracking
()
RESOLVED
DUPLICATE
of bug 281360
People
(Reporter: mkanat, Assigned: mkanat)
Details
I'm trying to solve bug 281360 right now, and I'm discovering that if I write something ridiculous for $db_driver in localconfig, or if I don't have MySQL up and running, perl gives me a very cryptic error message. Instead, the error checks and messages that are now in checksetup should be inside of Bugzilla::DB, in the _connect function. Basically, just this line needs to change, to test $db_driver: eval ("require $pkg_module") || die ($@); And this line in db_new() needs to do some error-catching if we fail to connect to the database: my $self = DBI->connect($dsn, $user, $pass, $attributes); I didn't put this as a comment on bug 237862 because I want that checked-in, and we can fix this afterwards.
| Assignee | ||
Comment 1•20 years ago
|
||
Actually, this is so easy I can do it myself.
Assignee: Tomas.Kopal → general
| Assignee | ||
Comment 2•20 years ago
|
||
Actually, this is so easy I can do it myself.
Assignee: general → mkanat
| Assignee | ||
Comment 3•20 years ago
|
||
OK, I actually rolled it into bug 281360.
Status: NEW → ASSIGNED
Whiteboard: [blocker will fix]
| Assignee | ||
Comment 4•20 years ago
|
||
I'll just handle it all in bug 281360. *** This bug has been marked as a duplicate of 281360 ***
No longer blocks: 281360
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Whiteboard: [blocker will fix]
You need to log in
before you can comment on or make changes to this bug.
Description
•