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

Re: Re: Re: DBI HandleError statement display

by hmerrill (Friar)
on Aug 07, 2002 at 13:41 UTC ( [id://188306]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: DBI HandleError statement display
in thread DBI HandleError statement display

Tommy, have you tried using $dbh->trace? Not sure what your application is doing, but if you're trying to insert invalid data, hopefully that means that you just haven't beefed up your edits enough yet. Use $dbh->trace to help figure out what "bad" data you're trying to insert, then beef up your edits to prevent that data from making it that far. I could swear that I've used Carp's cluck before and gotten a meaningful stack trace that *did* show the placeholder values trying to get inserted(or updated, whatever).

HTH.
  • Comment on Re: Re: Re: DBI HandleError statement display

Replies are listed 'Best First'.
Re: Re: Re: Re: DBI HandleError statement display
by axelrose (Scribe) on Aug 07, 2002 at 13:56 UTC

    Thanks for the hint. Yes, I found the culprit by using $dbh->trace(2).

    Nonetheless I wonder what the best *general* solution for reporting errors looks like.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-25 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found