in reply to Re: DBI HandleError statement display
in thread DBI HandleError statement display
I tried "$dbh->{ShowErrorStatement} =1" as well as "$inssth->{ShowErrorStaement = 1" without any visible change in the error message.
The statement handles are indeed varying so I cannot use "$sth->Statement".
Some improvement though gives:Now the error messages looks like:$dbh->{HandleError} = sub { warn $DBI::lasth->{Statement}; Carp::confess; }
I found a message from Tim Bunce in perl.dbi.dev that he is planning an extension for showing the bound parameters as well. That means for the moment I'm stuck unless I give up the placeholders.insert into mytable values ( ?, ? ) main::__ANON__('DBD::Oracle::st execute failed: ORA-01722: ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: DBI HandleError statement display
by hmerrill (Friar) on Aug 07, 2002 at 13:41 UTC | |
by axelrose (Scribe) on Aug 07, 2002 at 13:56 UTC | |
|
Re: DBI HandleError statement display
by Anonymous Monk on Aug 07, 2002 at 20:05 UTC |