Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: DBI Disconnect does nothing!

by dHarry (Abbot)
on Jun 08, 2009 at 09:21 UTC ( #769433=note: print w/replies, xml ) Need Help??

in reply to DBI Disconnect does nothing!

What does

$dbh->disconnect or warn "Disconnection failed: $DBI::errstr\n";

Replies are listed 'Best First'.
Re^2: DBI Disconnect does nothing!
by Anneq (Vicar) on Jun 08, 2009 at 12:55 UTC

    $DBI::errstr gives the actual database error message from the last DBI method called. See for more information.

      Hi :) expresspotato needs to insert that code in his program, and report us the error message :)

        Yes, expresspotato needs to put that in his code and report back. I was responding to dHarry, whose question seemed to be more like "what is this?", rather than "what does this do when you try it?".

        Interestingly enough though, my response got a bunch of down votes. I wouldn't down vote someone who was genuinely trying to help but misinterpreted a question. Seems pretty counter productive to me in that it could discourage people from trying to help out.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2021-10-22 13:16 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (85 votes). Check out past polls.