Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: want to skip displaying of "DBD::Oracle::st execute failed:" error messages showing full query

by boftx (Deacon)
on Apr 07, 2015 at 17:39 UTC ( [id://1122721]=note: print w/replies, xml ) Need Help??


in reply to Re^3: want to skip displaying of "DBD::Oracle::st execute failed:" error messages showing full query
in thread want to skip displaying of "DBD::Oracle::st execute failed:" error messages showing full query

From DBI:

ShowErrorStatement Type: boolean, inherited The ShowErrorStatement attribute can be used to cause the relevant Statement text to be appended to the error messages generated by the RaiseError, PrintError, and PrintWarn attributes. Only applies to errors on statement handles plus the prepare(), do(), and the various select*() database handle methods. (The exact format of the appended text is subject to change.) If $h->{ParamValues} returns a hash reference of parameter (placeholder) values then those are formatted and appended to the end of the Statement text in the error message.
So instead of RaiseError and/or PrintError you need to work with ShowErrorStatement. That might remove the need to use the eval approach below if that is not appealing.

You must always remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.
  • Comment on Re^4: want to skip displaying of "DBD::Oracle::st execute failed:" error messages showing full query
  • Select or Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2024-04-18 14:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found