Changeset 318 for branches/stable/cgi-bin/CustIDCK.pm
- Timestamp:
- 04/03/06 16:20:54 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/CustIDCK.pm
r310 r318 49 49 50 50 eval { 51 $dbh = DBI->connect ("DBI:Pg:host= newbilling;dbname=custids", "cidcheck", "c1dch4ck");52 die "failed connection to newbilling!!" if !$dbh;51 $dbh = DBI->connect ("DBI:Pg:host=billing;dbname=custids", "cidcheck", "c1dch4ck"); 52 die "failed connection to billing!!" if !$dbh; 53 53 # Not certain if this is needed here. It doesn't seem to be. 54 54 # $dbh->ping; # Gotta do this to "force" a "failure". NRGH. … … 58 58 }; 59 59 alarm 0; # avoid race conditions. May not be needed here. (Hah!) 60 if ($@ && $@ !~ /failed connection to newbilling!!/) {60 if ($@ && $@ !~ /failed connection to billing!!/) { 61 61 $CustIDCK::Error = 1; 62 $CustIDCK::ErrMsg = "Failed connection to newbilling DB host! Unable to verify CustIDs.";62 $CustIDCK::ErrMsg = "Failed connection to billing DB host! Unable to verify CustIDs."; 63 63 return 0; 64 64 }
Note:
See TracChangeset
for help on using the changeset viewer.