projects
/
dbsrgits/DBIx-Class-Historic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Warn in case of iterative collapse being upgraded to an eager cursor slurp
[dbsrgits/DBIx-Class-Historic.git]
/
lib
/
DBIx
/
Class
/
CDBICompat
/
Iterator.pm
diff --git
a/lib/DBIx/Class/CDBICompat/Iterator.pm
b/lib/DBIx/Class/CDBICompat/Iterator.pm
index
847b10b
..
eb60177
100644
(file)
--- a/
lib/DBIx/Class/CDBICompat/Iterator.pm
+++ b/
lib/DBIx/Class/CDBICompat/Iterator.pm
@@
-49,4
+49,16
@@
sub _bool {
return $_[0]->count;
}
+sub _construct_results {
+ my $self = shift;
+
+ my $rows = $self->next::method(@_);
+
+ if (my $f = $self->_resolved_attrs->{record_filter}) {
+ $_ = $f->($_) for @$rows;
+ }
+
+ return $rows;
+}
+
1;