On Wed, 2006-11-15 at 19:55 -0500, Chris Beck wrote:
>
> 1) Is this the right forum for asking a question about Plugin-DBH? I searched
> the archives and saw some threads about it here.
I think so
>
> 2) (assuming the answer to 1) is here) - How do I get the error message if
> dbh_config fails?
>
I don't think that you'll get a message. Plugin-DBH is lazy loading, so
the database connection won't actually get created until you try to
access it the first time. dbh_config just defines up the parameters for
the handle when it is finally used.
To get any error message you'll need to test the $self->dbh calls (per
statement, using RaiseError for mutiple db calls in an eval, or perhaps
using something like Exception::Class::DBI)
Dan
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.