https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28871

--- Comment #12 from Tomás Cohen Arazi <[email protected]> ---
(In reply to Marcel de Rooy from comment #9)
> BTW It seems to me that we do not even need to do a search, just create a
> resultset with new only. But this is merely a theoretical difference. There
> will be no db read since we set the cache.
> 
> #    $self = $self->search(\'0 = 1');
>     $self->_resultset()->set_cache([]);

That ->search call will not trigger a db search. That's correct. It was added
so further chaining always returns ah empty set.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to