From 2f66f526d5ce462ae5b0f00bc17ce9a60be607c1 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 20 Sep 2002 21:37:07 +0000 Subject: [PATCH] Back-patch fix for failure to dump views containing FULL JOIN USING. The bug is not present in CVS tip due to cleanup of JOIN handling, but 7.2.* is broken. --- src/backend/utils/adt/ruleutils.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/backend/utils/adt/ruleutils.c b/src/backend/utils/adt/ruleutils.c index 35c69cb97d..0e440bfc73 100644 --- a/src/backend/utils/adt/ruleutils.c +++ b/src/backend/utils/adt/ruleutils.c @@ -1611,6 +1611,17 @@ phony_equal(Node *expr1, Node *expr2, int levelsup) return false; return true; } + if (IsA(expr1, NullTest)) + { + NullTest *a = (NullTest *) expr1; + NullTest *b = (NullTest *) expr2; + + if (!phony_equal(a->arg, b->arg, levelsup)) + return false; + if (a->nulltesttype != b->nulltesttype) + return false; + return true; + } if (IsA(expr1, Expr)) { Expr *a = (Expr *) expr1; -- 2.39.5