From: Mike Taylor Date: Fri, 9 Mar 2007 08:57:12 +0000 (+0000) Subject: Add destroy() method which destroys associated result-set. X-Git-Tag: CPAN-v1.02~54^2~487 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=92d16e5b5e8dd133a917d9b2883156ec692d5a1e Add destroy() method which destroys associated result-set. --- diff --git a/lib/ZOOM/IRSpy/Connection.pm b/lib/ZOOM/IRSpy/Connection.pm index 8fd6329..b556447 100644 --- a/lib/ZOOM/IRSpy/Connection.pm +++ b/lib/ZOOM/IRSpy/Connection.pm @@ -1,4 +1,4 @@ -# $Id: Connection.pm,v 1.9 2007-03-07 10:26:50 mike Exp $ +# $Id: Connection.pm,v 1.10 2007-03-09 08:57:12 mike Exp $ package ZOOM::IRSpy::Connection; @@ -57,6 +57,13 @@ sub create { } +sub destroy { + my $this = shift(); + $this->SUPER::destroy(@_); + $this->{rs}->destroy() if defined $this->{rs}; +} + + sub irspy { my $this = shift(); return $this->{irspy};