Re: [Maypole] "Description" as table column

From: Ian Carruthers (i.carruthers at inpharmatica.co.uk)
Date: Fri Jan 14 2005 - 17:06:39 GMT


Simon Flack wrote:

> 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

thanks for the speedy responce,makes sense now!
Cheers , Ian



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT