From: Daniel Westermann-Clark Date: Wed, 10 May 2006 15:02:14 +0000 (+0000) Subject: Row::update encapsulates this when passed a hashref; no point in duplication X-Git-Tag: v0.07002~75^2~202 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0109b2046b7f06049672d224a915722666b75059;p=dbsrgits%2FDBIx-Class.git Row::update encapsulates this when passed a hashref; no point in duplication --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 7d18853..db58023 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -1259,8 +1259,7 @@ sub update_or_create { my $row = $self->find($hash, $attrs); if (defined $row) { - $row->set_columns($hash); - $row->update; + $row->update($hash); return $row; }