[Koha-bugs] [Bug 12647] QueryParser fails tests

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 8 20:00:20 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12647

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 30638
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30638&action=edit
Bug 12647: PQF QueryParser driver and unit tests fixes

Due to Perl 5.18, QueryParser the default search class is no longer
'keyword' (see bug 12738), and needs to be set manually. This patch
adds a line that does that. The problem that gets fixed is with test
'super simple keyword query'.

The rest of the non-deterministically failing tests are due to the same
problem, keys returning differently sorted keys from hashes.

So this patch sorts keys in the step that concatenates attributes when building
the PQF queries (and tests get adjusted to match the now deterministic result).

I did that (sorting there) under Jared's recommendation. Hopefuly he will step
in and comment/fix any mistake I made. My main concern was a possible loss
in performance. That we agreed it is almost void, because of the tiny size
of the hash.

Sponsored-by: Universidad Nacional de Cordoba

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


More information about the Koha-bugs mailing list