X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FMultiColumnIn.pm;h=30d7299130bca0606f44ab13b00a41f44fa2fc91;hb=6ed1cd2e84222c115ca357a9cd09a57aa21ac167;hp=0a48805118a6f5fce6c6c3e897b9be5070357fae;hpb=9f6b5584c111879dc9dbf845bcf2462fa7471646;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/MultiColumnIn.pm b/lib/DBIx/Class/Storage/DBI/MultiColumnIn.pm index 0a48805..30d7299 100644 --- a/lib/DBIx/Class/Storage/DBI/MultiColumnIn.pm +++ b/lib/DBIx/Class/Storage/DBI/MultiColumnIn.pm @@ -4,6 +4,7 @@ use strict; use warnings; use base 'DBIx::Class::Storage::DBI'; +use mro 'c3'; =head1 NAME @@ -16,7 +17,7 @@ in fact understand WHERE (cola, colb) IN ( SELECT subcol_a, subcol_b ... ) The storage class for any such RDBMS should inherit from this class, in order to dramatically speed up update/delete operations on joined multipk resultsets. -At this point the only overriden method is C<_multipk_update_delete()> +At this point the only overridden method is C<_multipk_update_delete()> =cut @@ -25,7 +26,7 @@ sub _multipk_update_delete { my ($rs, $op, $values) = @_; my $rsrc = $rs->result_source; - my @pcols = $rsrc->primary_columns; + my @pcols = $rsrc->_pri_cols; my $attrs = $rs->_resolved_attrs; # naive check - this is an internal method after all, we should know what we are doing