From: Matt S Trout Date: Fri, 20 Jan 2006 03:47:16 +0000 (+0000) Subject: Fixup PK::Auto::Pg X-Git-Tag: v0.05005~117^2~34 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fe2b68754e7fdece29f77a8e7445ec504b862b83;p=dbsrgits%2FDBIx-Class.git Fixup PK::Auto::Pg --- diff --git a/lib/DBIx/Class/PK/Auto/Pg.pm b/lib/DBIx/Class/PK/Auto/Pg.pm index 4320433..19de131 100644 --- a/lib/DBIx/Class/PK/Auto/Pg.pm +++ b/lib/DBIx/Class/PK/Auto/Pg.pm @@ -23,7 +23,7 @@ sub get_autoinc_seq { } my @pri = $self->primary_columns; - my $dbh = $self->storage->dbh; + my $dbh = $self->result_source->storage->dbh; while (my $col = shift @pri) { my $info = $dbh->column_info(undef,undef,$self->table,$col)->fetchrow_arrayref; if (defined $info->[12] and $info->[12] =~