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

Answer: What is the difference between $DBI::errstr and $dbh->errstr?

by archfool (Monk)
on Jun 20, 2007 at 18:54 UTC ( #622359=categorized answer: print w/replies, xml ) Need Help??

Q&A > database programming > What is the difference between $DBI::errstr and $dbh->errstr? - Answer contributed by archfool

As a sidenote, if you are using PL/SQL in DBD::Oracle, there is a special method for PL/SQL errors:
my $msg = $dbh->func( 'plsql_errstr' ); die $dbh->errstr if ! defined $msg; die $msg if $msg;

  • Comment on Answer: What is the difference between $DBI::errstr and $dbh->errstr?
  • Download Code
Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (13)
As of 2016-10-25 19:53 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (328 votes). Check out past polls.