Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: How to disable SQL Warning in

by runrig (Abbot)
on Mar 18, 2014 at 15:44 UTC ( #1078798=note: print w/replies, xml ) Need Help??

in reply to How to disable SQL Warning in

I'm a little confused by this statement:

disable SQL Warning from being printed in errstr? I've tried setting PrintWarn, Warn, PrintError to 0, yet sql warnings are still being set in errstr.

Do you mean that errstr is just being set and you are printing the contents of errstr, or that warnings are being printed with no explicit print statements on your part?

  • Comment on Re: How to disable SQL Warning in

Replies are listed 'Best First'.
Re^2: How to disable SQL Warning in
by Anonymous Monk on Mar 18, 2014 at 18:23 UTC
    errstr is being populated by SQL Warning messages.
      Then there is no problem with PrintWarn (at least it sounds like your problem has nothing to do with PrintWarn). You can change the behavior with HandleSetErr, but why are you printing errstr or even caring what is in errstr if there are no errors? The problem resolution seems like it should be "Don't print errstr if there are no errors detected".

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2021-03-07 12:38 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (121 votes). Check out past polls.