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

--- Comment #43 from David Cook <dc...@prosentient.com.au> ---
Whoa... added unit tests when UseQueryParser is enabled and it's giving
unpredictable results. 

Half the time, the expected result is correct and half the time it is wrong. It
looks like it's swapping the order of the operands around. Bizarre.
#          got: '@or @or @attr 1=1016 @attr 5=1 @attr 4=6 "test" @attr 2=102
@attr 9=34 @attr 5=1 @attr 4=6 "test" @attr 2=102 @attr 9=20 @attr 5=1 @attr
4=6 "test"'
#     expected: '@or @or @attr 1=1016 @attr 5=1 @attr 4=6 "test" @attr 2=102
@attr 9=20 @attr 5=1 @attr 4=6 "test" @attr 2=102 @attr 9=34 @attr 5=1 @attr
4=6 "test"'

I don't know what to do about that... it'll unpredictably bust the tests on
master, but it is arguably a problem with the QueryParser or at least a problem
of evaluating the query based on string matching instead of parsing the query
and analyzing it logically...

I think I'll leave out that test for now... especiallys ince we are planning to
remove the QueryParser...

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to