database connectivity
From: seth (satyen.sheth_at_gmail.com)
Date: 01/29/05
- Previous message: Michael A Chase: "Re: CAN-2005-0077"
- Next in thread: René: "Re: database connectivity"
- Reply: René: "Re: database connectivity"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Jan 2005 15:36:55 -0800
Hi:
I'm writing some code using DBI in perl and using mysql version 3.xx
I am doing the following:
sub Setup {
.. create handle ( DBI::connect ... )
.. insert to mysql
$self->{"dbh"} = $dbh;
}
sub Update {
my $self = shift;
my $dbh = $self->{"dbh"};
.. do more sql updates
}
the sql updates fail in the "Update" method.
I want to find out if my $dbh is still able to talk to the database
properly between the first sql query and the second one.
Besides $dbh->ping is there any other $dbh utility to help verify if my
handle object is sane between the two methods?
-thanks
- Previous message: Michael A Chase: "Re: CAN-2005-0077"
- Next in thread: René: "Re: database connectivity"
- Reply: René: "Re: database connectivity"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]