projects
/
working
/
Evergreen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2f7835
)
Bugfix for negative matches
author
senator
<lebbeous@esilibrary.com>
Fri, 22 Apr 2011 16:12:30 +0000
(12:12 -0400)
committer
Bill Erickson
<berick@esilibrary.com>
Wed, 6 Jul 2011 18:50:50 +0000
(14:50 -0400)
Open-ILS/src/sql/Pg/012.schema.vandelay.sql
patch
|
blob
|
history
diff --git
a/Open-ILS/src/sql/Pg/012.schema.vandelay.sql
b/Open-ILS/src/sql/Pg/012.schema.vandelay.sql
index
aee60a6
..
14a7e14
100644
(file)
--- a/
Open-ILS/src/sql/Pg/012.schema.vandelay.sql
+++ b/
Open-ILS/src/sql/Pg/012.schema.vandelay.sql
@@
-664,9
+664,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;