|
|
sybperl-l Archive
Up Prev Next
From: "Vickers, Alex" <Alex dot Vickers at nbnz dot co dot nz>
Subject: RE: ct_close?
Date: Apr 4 2002 3:33AM
Thanks David, that seems to work fine.
Alex Vickers (Database Administration)
email: Alex.Vickers@nbnz.co.nz
phone: +644 8022475 or x(24)7475
> -----Original Message-----
> From: David Owen [SMTP:dowen@midsomer.org]
> Sent: 4 April 2002 14:48
> To: SybPerl Discussion List
> Subject: Re: ct_close?
>
> >>>>> "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>
> (http://manuals.sybase.com:80/onlinebooks/group-cn/cng1000e/ref/@Generic__
> Bo
> 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.
>
> dowen
> --
> David Owen Midsomer Consultants Inc. dowen@midsomer.org
> Maintainer of the Sybase FAQ: http://www.isug.com/Sybase_FAQ
This communication is confidential and may contain privileged material.
If you are not the intended recipient you must not use, disclose, copy or retain it.
If you have received it in error please immediately notify me by return email
and delete the emails.
Thank you.
|