]> git.koha-community.org Git - koha.git/commit
Bug 7518: regression test double-quote in search operand
authorGalen Charlton <gmc@esilibrary.com>
Tue, 17 Dec 2013 16:32:09 +0000 (16:32 +0000)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 7 Feb 2014 15:08:50 +0000 (12:08 -0300)
commite3bf3e4521fa09a0d5dddcbb083282ec9c8e04b8
tree267d9cc55aca00f82526f2d303c94785e206538f
parentcc4a2a641ed9d662afbf188b418cc62f41b4cdc3
Bug 7518: regression test double-quote in search operand

Under certain circumstances, namely where QueryParser is off,
QueryWeightFields is on, and QueryFuzzy and QueryAutoTruncate are
off, a search with a double-quote embedded in it can fail: for
example

    web application

would return results where

    web "application

does not.

This patch adds an automated regression test.

To test:

[1] Apply this patch and run prove -v t/db_dependent/Search.t;
    two tests should fail.
[2] After applying the main patch that fixes the bug, the
    prove -v  t/db_dependent/Search.t should succeed.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 437f06624759c464d667107d9f73ec05283f6892)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 895f989dcaad44830bc85d855d71b654170dbb1d)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Fixed some conflicts, the tests are they same overall.
t/db_dependent/Search.t