[Maypole] "Description" as table column

Simon Flack sf@flacks.net
Fri, 14 Jan 2005 16:40:50 +0000


Ian Carruthers wrote:
> Hi,
> 
> Just spent a long time figuring out a bug in my maypole app,
> No errors printed, just straight failing,
> It appears the problem is with using "Description" as a column name in 
> one of my tables,
> The problem dissapears when the column name is changed,
> 
> Anyone know why this is happening?
> thanks.
> p.s. I am using oracle, & rolling my own Class::DBI modules.

The model class has a conflicting 'description' method which is called 
when when your templates are rendered. I'm planning on releasing a 
Maypole 2.07 this weekend with a fix for this and some other small 
issues that arose with 2.0[56].

Until then, you can either change the column name or change the accessor 
name that Class::DBI sets up for your 'description' column. See 
L<Class::DBI/"Changing Your Column Accessor Method Names">

--simon