Add destroy() method which destroys associated result-set.
authorMike Taylor <mike@indexdata.com>
Fri, 9 Mar 2007 08:57:12 +0000 (08:57 +0000)
committerMike Taylor <mike@indexdata.com>
Fri, 9 Mar 2007 08:57:12 +0000 (08:57 +0000)
lib/ZOOM/IRSpy/Connection.pm

index 8fd6329..b556447 100644 (file)
@@ -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;
 
 
 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};
 sub irspy {
     my $this = shift();
     return $this->{irspy};