]> 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)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 17 Dec 2013 16:32:09 +0000 (16:32 +0000)
commit437f06624759c464d667107d9f73ec05283f6892
tree77d07a5a0b49bb2f32b2979936d50342c2ada3d5
parent20589801e08bb725e6424bcb020968de863bd8ed
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>
t/db_dependent/Search.t