Revert previous bugfix; will apply to trunk
Daniel Westermann-Clark [Wed, 10 May 2006 15:55:35 +0000 (15:55 +0000)]
lib/DBIx/Class/ResultSet.pm

index db58023..7d18853 100644 (file)
@@ -1259,7 +1259,8 @@ sub update_or_create {
 
   my $row = $self->find($hash, $attrs);
   if (defined $row) {
-    $row->update($hash);
+    $row->set_columns($hash);
+    $row->update;
     return $row;
   }