Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Database Error Handling

by runrig (Abbot)
on Aug 12, 2013 at 16:40 UTC ( #1049144=note: print w/replies, xml ) Need Help??

in reply to Database Error Handling

You are checking for errors on the connect(), but not on the prepare, nor the execute. Use RaiseError on the connect, and then you don't have to check on any of them, it is taken care of for you.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049144]
[Discipulus]: the very same topic was discussed in CB yesterday at lunch time
[Discipulus]: or can I ask for a module to do the back conversion from flame to txt?

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2017-06-23 08:04 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (538 votes). Check out past polls.