Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: DBI HandleError statement display

by axelrose (Scribe)
on Aug 09, 2002 at 09:03 UTC ( [id://188847]=note: print w/replies, xml ) Need Help??


in reply to DBI HandleError statement display

Tim helped again -- here is the solution:
my $options = { RaiseError => 1, PrintError =>1 }; my $dbh = DBI->connect( $dsn, $username $password, $options ) or die; $dbh->{ShowErrorStatement} = 1; $dbh->{HandleError} = sub { Carp::Confess( $_[0] };

Carp::Confess( @_ ) gives warning within Carp itself ...

Display of bind parameters is scheduled for the next release of DBD::Oracle. Tim published a patch in the dbi-users mailing list for DBD::Oracle version 1.12.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-23 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found