[Dbix-class] Bug(?) and question

Alan Humphrey alan.humphrey at comcast.net
Wed Feb 15 01:33:31 CET 2006


I was finally able to get back to my migrating data problem.  I tried to do
this:

 

$obj->update($cols);

 

where cols is a hash ref.  No luck.  The update went through
Relationship::CascadeActions and the database update was never called.

 

This worked:

 

$obj->set_columns($cols);

$obj->update();

 

Is this a bug?

 

 

New problem/question.  It turns out that the default datetime format used by
MySQL is incompatible with SQLServer.  Simply using the MySQL value (all
zeros) in the update statement to SQL Server gets an error.  For this
particular app I can trap the update and simply null out the value.

 

But a broader question comes up.   How do you do column level validation
using DBIx::Class?

 

Thanks for your thoughts!

 

- Alan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/dbix-class/attachments/20060214/742a3947/attachment.htm


More information about the Dbix-class mailing list