[Koha-bugs] [Bug 25296] Add a way to force an empty Koha::Objects resultset

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 28 14:18:42 CEST 2020


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

--- Comment #6 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
My conversation with one of the DBIx::Class authors:

[17:56:51]  <tcohen> weird question: if I know a query is going to return and
empty resultset in advance, is there a way/helper to avoid performing the
query, but returning something resultset-ish for consistency?
[17:57:17]  <mst> tcohen: yes
[17:57:23]  <mst> tcohen: $rs->set_cache([]);
[17:57:32]  <tcohen> oh!
[17:57:43]  <mst> tcohen: not weird at all, I designed that feature in
somewhere over ten years ago and if it doesn't work for you, please ask again
:D

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list