Class::DBI::FromCGI not working with might_have

[prev] [thread] [next] [Date index for 2004/10/24]

From: =?ISO-8859-1?Q?Ask_Bj=F8rn_Hansen?=
Subject: Class::DBI::FromCGI not working with might_have
Date: 10:25 on 24 Oct 2004
Class::DBI::FromCGI can't update might_have columns.   Assuming this is 
unintended then there are (at least) two different ways to fix it.

One is to change Class::DBI::FromCGI to use a loop and update each 
field instead of using "$them->set(%$to_update);".

The other is to change find_column to be able to "find" the might_have 
columns.

Changing FromCGI is easy; the only complication is to make sure the 
effects of autoupdate doesn't change.  Changing find_column seems like 
it could get to be a lot more work fast.

:-)


  - ask

        -- 
        http://www.askbjoernhansen.com/

Class::DBI::FromCGI not working with might_have
=?ISO-8859-1?Q?Ask_Bj=F8rn_Hansen?= 10:25 on 24 Oct 2004

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