Set this to a true or false value (not C<undef>) to explicitly specify
if this column contains numeric data. This controls how set_column
decides whether to consider a column dirty after an update: if
-C<is_numeric> is true a numeric comparison C<< <=> >> will take place
+C<is_numeric> is true a numeric comparison C<< != >> will take place
instead of the usual C<eq>
If not specified the storage class will attempt to figure this out on
}
if ($colinfo->{is_numeric}) {
- $dirty = $old_value <=> $new_value;
+ $dirty = $old_value != $new_value;
}
else {
$dirty = 1;
Given a datatype from column_info, returns a boolean value indicating if
the current RDBMS considers it a numeric value. This controls how
L<DBIx::Class::Row/set_column> decides whether to mark the column as
-dirty - when the datatype is deemed numeric a C<< <=> >> comparison will
+dirty - when the datatype is deemed numeric a C<< != >> comparison will
be performed instead of the usual C<eq>.
=cut