mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-07 19:47:50 +08:00
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.
This commit is contained in:
parent
30ab8da488
commit
826692788d
@ -3,7 +3,7 @@
|
||||
* back to source text
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.89.2.1 2002/06/15 18:38:10 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.89.2.2 2002/09/20 21:37:07 tgl Exp $
|
||||
*
|
||||
* This software is copyrighted by Jan Wieck - Hamburg.
|
||||
*
|
||||
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user