Re: [GENERAL] catching errors from BDI.pm

2000-04-16 Thread Ed Loehr
IIRC, certain kinds of pg errors trigger exceptions that can only be caught with an eval wrapper. Not sure, but the DBD::Pg module may just be parroting the bail-out behavior of the backend. Regards, Ed Loehr Jeffrey wrote: > > Hi, > > I am having trouble catching errors from postgress. I am

[GENERAL] catching errors from BDI.pm

2000-04-15 Thread Jeffrey
Hi, I am having trouble catching errors from postgress. I am connecting to the database via perl and DBI.pm The following will work ($dbh = DBI->connect("$dsn", "", "") ) or (print $DBI::errstr and exit()); But this wont (from deliberately spelled wrong) ($sth=$dbh->prepare("select * form table