Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: PER DBI gives selectrow_array error

by Anonymous Monk
on Jan 11, 2013 at 09:54 UTC ( #1012850=note: print w/ replies, xml ) Need Help??


in reply to PER DBI gives selectrow_array error

You're not error checking properly and have turned off RaiseError

my $sth = $dbh->prepare ...
can fail, with RaiseError it will die, but without RaiseError it won't die (stop your program)

So either use  if( my $sth = $dbh->... ) or turn on RaiseError and let it die, or catch it with eval or do whatever


Comment on Re: PER DBI gives selectrow_array error
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012850]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2015-07-03 18:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (55 votes), past polls