NOT SOLVED! Re: [ic] User tag on CommonAdjust producing an errormessage

Kevin Walsh interchange-users@icdevgroup.org
Tue Sep 3 01:00:02 2002


> 
> w2k.mmaz.com MxyBptP2:192.168.10.10 - [30/August/2002:15:17:14 -0400] 
> mmb2c /cgi-bin/mmb2c/TRM-2194-05-EMI-02.html Safe: Can't locate object 
> method "open_table" via package "Vend::Table::GDBM" (perhaps you forgot 
> to load "Vend::Table::GDBM"
> ?) at /ibin/interchange/lib/Vend/Data.pm line 910.
>  >
>  > $Tag->tier_pricing( $item->{code}, $item->{quantity} )
>  >
> 
> After testing with the change, I started working on other parts of the 
> system and when reviewing the log for another reason, I saw this!  It 
> return, though it appears to be complaining about a different routine. 
>  In a nutshell, this is what is in the usertag:
> 
>   my $sql = "select quantity,discount from tiers where tier='" . $tier 
> ."' order by code desc";
>   my $db = ::database_exists_ref('tiers') or die 'Missing tiers table';
>   my $results = $db->query({sql => $sql});
> 
> What kills me is that the code works, so why is IC complaining about it?
> 
Have you created a test tag with just those three lines and some
sort of test return value, such as 123?  I'd be surprised if you
got the same error message, or anything similar.

If you post the entire UserTag, perhaps something could be suggested.
It's usually better to post a code snippet, as you have done, but I
can't see anything functionally wrong with what you posted.  Of course,
I could be missing something.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/