What is wrong with using RaiseError ?
You are really just hand rolling something that already exists by using the
eval here aren't you?
eval's aren't that cheap :)
Eric
At 10:50 AM 10/24/03 +0530, Anil Menon wrote:
>
>
>Hi ,
>I dont know if this is the right answer but why dont u do and eval on
>critical line code ?
>like
>
>eval{$sth = $dbh->exeute(); };
>if($@){
> print "This is an Error :". $dbh->errstr;
> exit;
>}else {
> print "Execute is successful \n";
>}
>
>
>
>[EMAIL PROTECTED] wrote:
>
>>Let's assume that the $sth->prepare() was good but something failed at
>>this line:
>>
>>$sth = $dbh->exeute();
>>
>>if($sth) is not consistent when connection or something goes bad.
>>
>>Can you or someone comment further about testing $sth if there are rows?
>>
>>
>>-thanks
>>
>>
>--
>Anil Menon
>MIS Team.
>
>To invent, you need a good imagination and a pile of junk. We have both.
> - MIS @ Rhythm & Hues Studios.
>
>
(250) 655 - 9513 (PST Time Zone)
"Inquiry is fatal to certainty." -- Will Durant