X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FRow.pm;h=bde2989b9656b9c121fdc4b29ea7b5eb385566a2;hb=05075aeee9eee4070919861a119a8f582d0feb48;hp=e583f2b66a6f62352a3c9884be03fa9c69233a48;hpb=8f9eff7531d8f4b32008ed94c492c23603d15267;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Row.pm b/lib/DBIx/Class/Row.pm index e583f2b..bde2989 100644 --- a/lib/DBIx/Class/Row.pm +++ b/lib/DBIx/Class/Row.pm @@ -647,6 +647,8 @@ sub has_column_loaded { Returns all loaded column data as a hash, containing raw values. To get just one value for a particular column, use L. +See L to get the inflated values. + =cut sub get_columns { @@ -793,7 +795,7 @@ sub set_column { } if ($colinfo->{is_numeric}) { - $dirty = $old_value <=> $new_value; + $dirty = $old_value != $new_value; } else { $dirty = 1; @@ -909,7 +911,11 @@ sub set_inflated_columns { Inserts a new row into the database, as a copy of the original object. If a hashref of replacement data is supplied, these will take -precedence over data in the original. +precedence over data in the original. Also any columns which have +the L +C<< is_auto_increment => 1 >> are explicitly removed before the copy, +so that the database can insert its own autoincremented values into +the new object. Relationships will be followed by the copy procedure B if the relationship specifes a true value for its