No it only catches if it's an error, like a bad call, but not being able to
connect is not an error unless the underlying DB driver throws one so you
must specifically check the $dbh.
Also some code would be helpful.
$dbh->do($sql);
The above just doesn't help us to help you.
Are you sure you are not declaring $dbh with my somewhere and then calling
do outside of scope?
Ilya Sterin
-----Original Message-----
From: Jennifer
To: [EMAIL PROTECTED]
Sent: 03/08/2001 12:46 PM
Subject: Re: Can't call method "do"
At 04:28 AM 08-03-01, you wrote:
>$dbh isn't defined at that point - probably because the
>
>$dbh = DBI->connect(whatever)
>
>failed, and you didn't check for errors connecting to the database.
>
>Cheers,
>
>Colin.
I have RaiseError => 1 shouldn't that catch an error on the connect?
I also printed the value of $dbh to the screen which was
DBI::db=HASH(0x816ec6c)
Jennifer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Looking for books, software, movies, music...
http://www.chapters.ca/Default.asp?AFFID=108464
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quality Children's Products - http://Store.MomsAtHome.ca/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your own domain name for as little as $13 US
http://www.mahDesigns.com/domains/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~