I am trying to test some error logic for my database conneciton. Should the connection not be established the program should issue the "die" signal:
my $dbh = DBI->connect($DSN, $username, $passwrd) or die "$DBI::errstr\n";
But it is not. It is issuing a warning or that's what I think it is doing as the "die" subroutine is not being executed.
Within the DBI function module, does it override the "die" with a "warn"???
Thanks...
-Chris
my $dbh = DBI->connect($DSN, $username, $passwrd) or die "$DBI::errstr\n";
But it is not. It is issuing a warning or that's what I think it is doing as the "die" subroutine is not being executed.
Within the DBI function module, does it override the "die" with a "warn"???
Thanks...
-Chris