[ic] Can't locate object method "test_column" via package "Ven d::Table::InMemory"

Mike Heins mikeh@minivend.com
Thu, 29 Mar 2001 11:35:25 -0500


Quoting vasile_abo@wexim.com (vasile_abo@wexim.com):
> Hello everybody here
> 
> I've got a strange problem with a Interchange 4.6.3
> on a Linux box with perl 5.6. In error.log I got :
> ###################################
> [28/March/2001:03:36:57 -0500] shop /cgi-bin/shop/order_to_print.html
> Safe: Can't locate object method "test_column" via package "Vend::
> Table::InMemory" at [interchange path here]/lib/Vend/Data.pm line 186.
> >
> > return sprintf("%.2f", $Tag->total_cost({noformat=>1}))
> ###################################
> 
> In fact, I got this everytime I try to use $Tag->total_cost
> in a Perl subroutine.
> This problem does not happen when using a GDBM table.
> Does anybody has an idea ?
> 

Apparently a defect in lib/Vend/Table/InMemory.pm. Add this line near
the bottom with the similar lines:

*test_column    = \&Vend::Table::Common::test_column;

This prevents the typical Safe error when trying to access the superclass.

Added to CVS, stable and devel both.

-- 
Red Hat, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <mheins@redhat.com>

Fast, reliable, cheap.  Pick two and we'll talk.  -- unknown