Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: CGI::Application::Plugin::DBH connect error handling

by jaldhar (Vicar)
on Feb 10, 2011 at 21:34 UTC ( #887538=note: print w/replies, xml ) Need Help??


in reply to CGI::Application::Plugin::DBH connect error handling

IMO regardless of whether you use the plugin or plain DBI or whatever, you should wrap any database access calls in an eval{} (and RaiseError => 1 in dbh_config().) Too many different things can go wrong in a web app.

--
જલધર

  • Comment on Re: CGI::Application::Plugin::DBH connect error handling

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://887538]
help
Chatterbox?
[erix]: heh, really? yeah, I suppose it may be so
[ambrus]: We're not really sure. There are some other contenders like libjpeg, and it's not easy to tell how you even measure this.
[ambrus]: But we figured it's close.
[Corion]: If you take Android as the baseline, that makes all three a likely contender

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2017-09-25 14:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?