From: senator Date: Fri, 22 Apr 2011 16:12:30 +0000 (-0400) Subject: Bugfix for negative matches X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=27948d2b3b29fb21518c324b8866c2e57816bb00;p=evergreen%2Fequinox.git Bugfix for negative matches --- diff --git a/Open-ILS/src/sql/Pg/012.schema.vandelay.sql b/Open-ILS/src/sql/Pg/012.schema.vandelay.sql index 687f1618d4..eeb8e2a610 100644 --- a/Open-ILS/src/sql/Pg/012.schema.vandelay.sql +++ b/Open-ILS/src/sql/Pg/012.schema.vandelay.sql @@ -681,9 +681,7 @@ BEGIN IF node.bool_op IS NOT NULL THEN RETURN node.bool_op; ELSE - RETURN '(n' || node.id::TEXT || '.id IS ' || - (CASE WHEN node.negate THEN '' ELSE 'NOT ' END) || -- sic! - 'NULL)'; + RETURN '(n' || node.id::TEXT || '.id IS NOT NULL)'; END IF; END; $$ LANGUAGE PLPGSQL;