Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Work around precompilation issue on rakudo-j
  • Loading branch information
moritz committed Apr 20, 2014
1 parent c9c012d commit 1ef4584
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions lib/DBDish.pm6
Expand Up @@ -72,15 +72,19 @@ role DBDish::StatementHandle does DBDish::ErrorHandling {
}

method fetchall-AoH {
gather while self.fetchrow-hash -> %h {
take %h.item;
}
(0 xx *).map: {
my $h = self.fetchrow-hash;
last unless $h;
$h;
};
}

method fetchall-array {
gather while self.fetchrow -> @row {
take @row.item;
}
(0 xx *).map: {
my $r = self.fetchrow;
last unless $r;
$r;
};
}
method fetchrow_array { self.fetchrow }
method fetchrow_arrayref {
Expand Down

0 comments on commit 1ef4584

Please sign in to comment.