]> git.evergreen-ils.org Git - working/Evergreen.git/commit
QueryParser: Provide null rank query as default
authorThomas Berezansky <tsbere@mvlc.org>
Sun, 17 Feb 2013 00:03:27 +0000 (19:03 -0500)
committerBen Shum <bshum@biblio.org>
Mon, 25 Feb 2013 16:40:21 +0000 (11:40 -0500)
commit3a7baccb538efdf1ba6d5d7a13278a2716f5597b
tree6a15f68dab4e9f32e432a89b470b9f3b68de90e2
parent4ec48609ef5eb82b571b82e8ab5dc83109b63401
QueryParser: Provide null rank query as default

If a given node contains only negative atoms the rank query was coming out as
an empty string, which was generating bad SQL. This causes the default to be a
null tsquery instead.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm