--- nfo/perl/libs/Data/Storage/Result/Tangram.pm 2003/01/31 06:34:49 1.3 +++ nfo/perl/libs/Data/Storage/Result/Tangram.pm 2003/04/09 07:11:01 1.6 @@ -1,8 +1,17 @@ ############################################ # -# $Id: Tangram.pm,v 1.3 2003/01/31 06:34:49 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::* +# # Revision 1.3 2003/01/31 06:34:49 joko # + fixes to 'getNextEntry' and 'getStatus' # @@ -23,12 +32,12 @@ use base ("Data::Storage::Result::Abstract"); use Data::Dumper; -use Data::Compare::Struct qw( isEmpty ); +use Data::Mungle::Compare::Struct qw( isEmpty ); 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 { @@ -64,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});