Skip Menu |

This queue is for tickets about the DBIx-Simple CPAN distribution.

Report information
The Basics
Id: 64108
Status: rejected
Priority: 0/
Queue: DBIx-Simple

People
Owner: Nobody in particular
Requestors: MITHALDU [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Caching prepared statements does not work for the first query executed
Due to this bit: if (my $i = (grep $old->[$_][0] eq $query, 0..$#$old)[0]) { returning an index of 0 for the very first executed query, which evaluates to false, that cached statement handle is always ignored. Worse, due to any subsequent queries matching the 0th one, they won't be cached. As such the first query is never cached.
Duplicate of #26924; already fixed in version 1.33, released December 2010. -- Juerd