Hi,
        If I:

$dbh = DBI->connect("dbi:Oracle:$database", $user, $pass, { RaiseError=>1,
                     AutoCommit=>0 });

will DBI issue a die if connection fails?  I thought it should (and I
think it has in the past, if $database is unavailable), but I found that
if I accidentally put:

dbi:Oracles:$database

instead (note misspelling) then while $dbh is indeed undefined, no die
occurs, and my eval, which I have wrapping the connection, does not trap
anything.  In addition, no value is set for $DBI::errstr.  Is this
expected behaviour?

I'm using perl 5.6.1 with DBI 1.20, DBD::Oracle 1.12 and running on 64 bit
Solaris 8,

Cheers,
Gavin
___________________________________________________________

Gavin Sherlock
Dept. of Genetics
Center for Clinical Sciences Research
269 Campus Drive, 
Room 2255b, 
Stanford, 
CA 94305-5166

Tel: 650 498 6012
Fax: 650 723 7016

Reply via email to