Removing auto-generated methods (set_sql)

[prev] [thread] [next] [Date index for 2004/06/14]

From: William McKee
Subject: Removing auto-generated methods (set_sql)
Date: 16:27 on 14 Jun 2004
Hi list,

I'm using set_sql to perform custom searches built up from
SQL::Abstract. To my knowledge, I cannot use Class::DBI::AbstractSearch
because I need to do a join.

In testing my code, I discovered that repetitively calling the set_sql
function using the same name causes the following warning message:

    search_purchases() already exists at /mymodule.pm line 165

I checked the source and this warning is generated at line 936 in
Class/DBI.pm. OK, I figured I'll just remove the search_ function;
however, I don't see a way to do that.

On further reflection of the problem, I'm not sure why this warning is
being sent. Is there a problem with redefining a subroutine? If so, then
shouldn't there be a way to remove the created subs?


Thanks,
William

        -- 
        Knowmad Services Inc.
http://www.knowmad.com

(message missing)

Removing auto-generated methods (set_sql)
William McKee 16:27 on 14 Jun 2004

Re: Removing auto-generated methods (set_sql)
Tony Bowden 16:33 on 14 Jun 2004

Re: Removing auto-generated methods (set_sql)
William McKee 16:57 on 14 Jun 2004

Re: Removing auto-generated methods (set_sql)
Perrin Harkins 17:30 on 14 Jun 2004

Re: Removing auto-generated methods (set_sql)
William McKee 20:51 on 14 Jun 2004

Re: Removing auto-generated methods (set_sql)
Perrin Harkins 20:56 on 14 Jun 2004

Re: Removing auto-generated methods (set_sql)
William McKee 21:48 on 14 Jun 2004

Re: Removing auto-generated methods (set_sql)
Tony Bowden 21:59 on 14 Jun 2004

Re: Removing auto-generated methods (set_sql)
Tony Bowden 08:53 on 15 Jun 2004

Re: Removing auto-generated methods (set_sql)
William McKee 17:53 on 15 Jun 2004

Re: Removing auto-generated methods (set_sql)
Tony Bowden 19:59 on 15 Jun 2004

Re: Removing auto-generated methods (set_sql)
Perrin Harkins 00:04 on 16 Jun 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52