From: David Kamholz Date: Fri, 18 Nov 2005 17:35:41 +0000 (+0000) Subject: update fix in last rev to use has_column X-Git-Tag: v0.05005~171 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=153f69e7196d86aca47acd7582c66d2da8eb7982;p=dbsrgits%2FDBIx-Class.git update fix in last rev to use has_column --- diff --git a/lib/DBIx/Class/PK/Auto.pm b/lib/DBIx/Class/PK/Auto.pm index ac7f3dd..24421a1 100644 --- a/lib/DBIx/Class/PK/Auto.pm +++ b/lib/DBIx/Class/PK/Auto.pm @@ -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) =