[Dbix-class] numeric fields and null content

Peter Rabbitson rabbit+dbic at rabbit.us
Fri Jun 13 10:31:04 GMT 2014

On Fri, Jun 13, 2014 at 12:45:39AM +0200, Erik Colson wrote:
> Hi,
> In method ‘_eq_column_values’ in DBIx::Class::Row the change comparison is done numerically (==) if the column is ‘_is_column_numeric’. However this will fail if either the $old or $new value is NULL. A check on the ‘is_nullable’ info provided in the schema could check for this before the numeric comparison…
> Or am I missing something ?

No you aren't. It is in fact a bug. Could you please write me a test that shows the issue?


More information about the DBIx-Class mailing list