Stop instantiating a cursor on single() use
authorPeter Rabbitson <ribasushi@cpan.org>
Wed, 24 Apr 2013 03:23:43 +0000 (05:23 +0200)
committerPeter Rabbitson <ribasushi@cpan.org>
Wed, 24 Apr 2013 03:40:46 +0000 (05:40 +0200)
commit735f190ce9798b79ae0608b62087cdd1d3c0b47e
treed226a78221f84c369ffb74156cbdaf0e4a8262e9
parent1887cd9f0db6e10e4659fa770b064e2bf25bc0b3
Stop instantiating a cursor on single() use

This minor pessimization snuck in all the way back in 4e9fc3f3.
I am actually not entirely sure whether this isn't a bug - after
all this way Cursor::Cached and friends are bypassed. However
0.08210 has an identical behavior, thus sod it
lib/DBIx/Class/ResultSet.pm
t/search/preserve_original_rs.t