update fix in last rev to use has_column
David Kamholz [Fri, 18 Nov 2005 17:35:41 +0000 (17:35 +0000)]
lib/DBIx/Class/PK/Auto.pm

index ac7f3dd..24421a1 100644 (file)
@@ -35,7 +35,7 @@ sub insert {
 
   # if all primaries are already populated, skip auto-inc
   my $populated = 0;
-  map { $populated++ if defined $self->$_ } $self->primary_columns;
+  map { $populated++ if $self->has_column($_) } $self->primary_columns;
   return $ret if ( $populated == scalar $self->primary_columns );
 
   my ($pri, $too_many) =