Re: Inheritance confusion

[prev] [thread] [next] [Date index for 2005/02/20]

From: Tony Bowden
Subject: Re: Inheritance confusion
Date: 09:41 on 20 Feb 2005
On Sat, Feb 19, 2005 at 11:05:35PM -0500, Warren Pollans wrote:
> I've created a set_sql() called tableinfo.  sql_tableinfo is inherited 
> by subclasses - i.e., <subclass>->sql_tableinfo works OK.  However, 
> when I try to use <subclass>->search_tableinfo, there is a complaint: 
> Can't locate object method "search_tableinfo" via package in the 
> <subclass>

set_sql only creates search_* methods for queries for which it would
make sense to do so. In your case, a list of columns will not translate
into objects of the class, so you don't get a search_tableinfo method.

Tony

Inheritance confusion
Warren Pollans 04:05 on 20 Feb 2005

Re: Inheritance confusion
Tony Bowden 09:41 on 20 Feb 2005

Generated at 11:30 on 23 Feb 2005 by mariachi v0.52