|
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 |
_______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
