]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 27 Jan 2014 12:34:02 +0000 (13:34 +0100)
commit895f989dcaad44830bc85d855d71b654170dbb1d
tree7899e7488696eab732269ee00795563150106398
parentb0c11d03aadcb16fef00a10011080aadc3a38de1
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>
t/db_dependent/Search.t