Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: DBD::mysql warns *and* dies?

by bart (Canon)
on Jul 18, 2006 at 12:30 UTC ( [id://561991]=note: print w/replies, xml ) Need Help??


in reply to DBD::mysql warns *and* dies?

Set PrintError (sibling to RaiseError) to false. I think the default value is true.

Replies are listed 'Best First'.
Re^2: DBD::mysql warns *and* dies?
by Ovid (Cardinal) on Jul 18, 2006 at 12:34 UTC

    Right in one! Thanks :) Curiously, the full code which demonstrates this error has PrintError set to false so there's something else going on, but I think this is on the right track.

    Cheers,
    Ovid

    New address of my CGI Course.

      PrintError is not affecting it, RaiseError is raising the warn, extract from perldoc for DBI:
      "If you turn RaiseError on then you'd normally turn PrintError off." Update: Please ignore that, it is twaddle, the heat is getting to me.
Re^2: DBD::mysql warns *and* dies?
by Ieronim (Friar) on Jul 18, 2006 at 17:30 UTC
    There is a PrintWarn attribute too. I think it's needed to be turned off.

    I tried it on my own code—PrintError=>0 stopped the annoying warnings, PrintWarn=>0 did not change anything.


         s;;Just-me-not-h-Ni-m-P-Ni-lm-I-ar-O-Ni;;tr?IerONim-?HAcker ?d;print

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-24 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found