Subject: | Next release of DBIC may cause update() malfunction when used with ForceUTF8 |
Based on the change [1], DBIC when used with your store_column implementation may misreport the state of dirty columns, which may result in too many or too few sql UPDATE calls. The base UTF8Columns was reworked in [2], to allow you to essentially change ForceUTF8 to the following:
Show quoted text
package DBIx::Class::ForceUTF8;
use base qw/DBIx::Class::UTF8Columns/;
sub _is_utf8_column { 1 };
1;
Show quoted text
This will avoid code duplication, and make future support much easier.
Cheers
[1] http://dev.catalyst.perl.org/svnweb/bast/revision/?rev=8253
[2] http://dev.catalyst.perl.org/svnweb/bast/revision?rev=8254
Show quoted text
===========
package DBIx::Class::ForceUTF8;
use base qw/DBIx::Class::UTF8Columns/;
sub _is_utf8_column { 1 };
1;
Show quoted text
===========
This will avoid code duplication, and make future support much easier.
Cheers
[1] http://dev.catalyst.perl.org/svnweb/bast/revision/?rev=8253
[2] http://dev.catalyst.perl.org/svnweb/bast/revision?rev=8254