in reply to Perl dbi disconnect question...
Destruction of the connection handle will disconnect it, so you don't need the explicit disconnect. It might be a good idea to call rollback ( and to call commit before disconnect in the success branch). Your db may not have full transaction support, but the calls will do no harm and ease portability.
Because &bail_out represents a failure, it would be better to exit with a non-zero value.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Perl dbi disconnect question...
by kiat (Vicar) on Jan 05, 2004 at 01:00 UTC | |
by Zaxo (Archbishop) on Jan 05, 2004 at 01:16 UTC | |
by kiat (Vicar) on Jan 05, 2004 at 01:47 UTC |