Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Answer: Is there a way disconnect from database

( #92419=categorized answer: print w/ replies, xml ) Need Help??

Q&A > database programming > Is there a way disconnect from database contributed by mikeB

DBI will automatically close open connections at the end of a program, but will complain to let you know you forgot. This happens even with Ctrl-C, as the closing is handled by the connection's DESTROY method, which is invoked by Perl's garbage collection when the program terminates.

A major problem with depending on the automatic close is the variance in handling of open transactions. Some DBD's will commit, while others rollback.

Check out chapter 4 of Programming the Perl DBI (the ORA Cheetah book).

Comment on Answer: Is there a way disconnect from database
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 having an uproarious good time at the Monastery: (9)
As of 2015-11-26 10:16 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (697 votes), past polls