Up Prev Next
From: David Owen <dowen at midsomer dot org>
Subject: Re: ct_close?
Date: Apr 4 2002 2:48AM
>>>>> "Alex" == Vickers, Alex writes:
Alex> Hello, Unless I'm mistaken there doesn't appear to be support in
Alex> the sybperl CTlib for ct_close(). I notice there is a ct_close in
Alex> the Open Client Client Library C/Reference Manual
Alex> okTextView/28931;pt=24598/*#X). For most purposes we can just let
Alex> the connection close when it goes out of scope (e.g. when the perl
Alex> script exits) but for more complicated scripts it could be useful.
Alex> Is there going to be a ct_close() to match the dbclose() of DBlib?
Alex> If not, how can I explicitly close CT connections nicely?
When you destroy the file handle, the connection is closed. So, undef'ing
$dbh, if $dbh contained the original file handle, does the trick.
David Owen Midsomer Consultants Inc. firstname.lastname@example.org
Maintainer of the Sybase FAQ: http://www.isug.com/Sybase_FAQ