[Bast-commits] r8458 - DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage
frew at dev.catalyst.perl.org
frew at dev.catalyst.perl.org
Wed Jan 27 20:38:42 GMT 2010
Author: frew
Date: 2010-01-27 20:38:42 +0000 (Wed, 27 Jan 2010)
New Revision: 8458
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm
Log:
fix silly multipk bug
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm 2010-01-27 15:07:37 UTC (rev 8457)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm 2010-01-27 20:38:42 UTC (rev 8458)
@@ -531,7 +531,7 @@
@args = @args[0,1,2];
}
- $info{arguments} = \@args;
+ $info{arguments} = \@args;
my @storage_opts = grep exists $attrs{$_},
@storage_options, 'cursor_class';
@@ -1578,7 +1578,7 @@
}
sub update {
- my ($self, $source, @args) = @_;
+ my ($self, $source, @args) = @_;
my $bind_attrs = $self->source_bind_attributes($source);
@@ -1677,11 +1677,12 @@
my $row_cnt = '0E0';
my $subrs_cur = $rs->cursor;
- while (my @pks = $subrs_cur->next) {
+ my @all_pk = $subrs_cur->all;
+ for my $pks ( @all_pk) {
my $cond;
for my $i (0.. $#pcols) {
- $cond->{$pcols[$i]} = $pks[$i];
+ $cond->{$pcols[$i]} = $pks->[$i];
}
$self->$op (
More information about the Bast-commits
mailing list