sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: 'Connection' test?
Date: Oct 7 1998 4:56PM
David Carter writes:
> Hi,
>
> I can't see a CTlib equivalent for the DBlib call $dbh ->DBDEAD. Is it
> enough to say:
>
> unless ($dbh) {
> print "The database connection is dead!\n";
> }
>
> or is something more intricate needed?
The next release of sybperl will have $dbh->DBDEAD in CTlib too...
With a bit of luck it should be available in a couple of weeks.
Michael
--
Michael Peppler -||- Data Migrations Inc.
mpeppler@mbay.net -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
|