[Dbix-class] InflateColumn bug
Matt S Trout
dbix-class at trout.me.uk
Fri Oct 7 20:11:08 CEST 2005
On Fri, Sep 30, 2005 at 02:58:34PM -0400, Vsevolod (Simon) Ilyushchenko wrote:
> Hi,
>
> Here's a test case that shows creation of a spurious extra column. The
> problem lies in InflateColumn::new(). It auto-creates a new column in
> the column hash when doing 'exists'.
>
> There are other methods in InflateColumn that seem to have the same
> problem, but I'm not sure how to easily invoke them.
I have a horrible feeling that the real answer here is to fix the column
stuff so it doesn't go through hashrefs. What do people think about
$class->column_info('colname') doing $class->_columns->{colname} and returning
that if its exists? (ok, still a hashref, but an encapsulated one)
--
Matt S Trout Specialists in perl consulting, web development, and
Technical Director UNIX/Linux systems architecture and automation. Mail
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Dbix-class
mailing list