[Dbix-class] numeric fields and null content

Erik Colson eco at ecocode.net
Thu Jun 12 22:45:39 GMT 2014


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 ?

best
--
erik colson






More information about the DBIx-Class mailing list