Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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.