--- nfo/perl/libs/Data/Storage/Result/Tangram.pm 2003/03/27 15:31:15 1.4 +++ nfo/perl/libs/Data/Storage/Result/Tangram.pm 2003/04/09 02:09:47 1.5 @@ -1,8 +1,11 @@ ############################################ # -# $Id: Tangram.pm,v 1.4 2003/03/27 15:31:15 joko Exp $ +# $Id: Tangram.pm,v 1.5 2003/04/09 02:09:47 joko Exp $ # # $Log: Tangram.pm,v $ +# Revision 1.5 2003/04/09 02:09:47 joko +# bugfix: check for existance of '->close'-method before calling it on the 'RESULTHANDLE'-instance +# # Revision 1.4 2003/03/27 15:31:15 joko # fixes to modules regarding new namespace(s) below Data::Mungle::* # @@ -31,7 +34,7 @@ sub DESTROY { my $self = shift; #$logger->debug( __PACKAGE__ . "->" . "DESTROY" ); - $self->{RESULTHANDLE} && $self->{RESULTHANDLE}->close(); + $self->{RESULTHANDLE} && $self->{RESULTHANDLE}->can('close') && $self->{RESULTHANDLE}->close(); } sub getNextEntry {