--- 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 07:11:01 1.6 @@ -1,8 +1,14 @@ ############################################ # -# $Id: Tangram.pm,v 1.4 2003/03/27 15:31:15 joko Exp $ +# $Id: Tangram.pm,v 1.6 2003/04/09 07:11:01 joko Exp $ # # $Log: Tangram.pm,v $ +# Revision 1.6 2003/04/09 07:11:01 joko +# minor fix +# +# 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 +37,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 { @@ -67,6 +73,9 @@ sub getStatus { my $self = shift; my $status; + + $self->{resulthandle_type} ||= ''; + if ($self->{resulthandle_type} eq 'Tangram::Cursor') { =pod print Dumper($self->{RESULTHANDLE});