summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2006-04-13 01:12:01 +0000
committerJason Woodward2006-04-13 01:12:01 +0000
commit3589b3bb5eef330db9a5b99cb128570ab863fa9a (patch)
treedf379de034349d2c7e26e32d456b3b99f33b3b1a
parentd8707aa6d06c7d5b6a74411ccdffef1f750a5fec (diff)
downloadJaos-DBI-3589b3bb5eef330db9a5b99cb128570ab863fa9a.tar.gz
do not needlessly cache/recache search results
-rw-r--r--lib/Jaos/DBI.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Jaos/DBI.pm b/lib/Jaos/DBI.pm
index 99ceb52..6fcdad6 100644
--- a/lib/Jaos/DBI.pm
+++ b/lib/Jaos/DBI.pm
@@ -604,11 +604,7 @@ sub _do_search
eval {
my $stmt = $self->prepare($sql) or croak "Failed to prepare [$sql]";
$stmt->execute(@values) or $stmt->finish(),croak "[$sql]" . $!;
- $result = [
- map {
- $self->_add_obj_to_cache($class->SUPER::new($_));
- } @{$stmt->fetchall_arrayref({})}
- ];
+ $result = [ map { $class->SUPER::new($_) } @{$stmt->fetchall_arrayref({})} ];
$stmt->finish();
};
if ($@) {