Fix reverse compilation of IS DOCUMENT expression.

This commit is contained in:
Peter Eisentraut 2007-01-14 21:39:24 +00:00
parent a62e2c2b57
commit cb8906b354

View File

@ -2,7 +2,7 @@
* ruleutils.c - Functions to convert stored expressions/querytrees
* back to source text
*
* $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.242 2007/01/14 13:11:54 petere Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.243 2007/01/14 21:39:24 petere Exp $
**********************************************************************/
#include "postgres.h"
@ -3890,7 +3890,6 @@ get_rule_expr(Node *node, deparse_context *context,
case IS_XMLELEMENT:
case IS_XMLFOREST:
case IS_XMLPI:
case IS_DOCUMENT:
/* no extra decoration needed */
get_rule_expr((Node *) xexpr->args, context, true);
break;
@ -3943,6 +3942,9 @@ get_rule_expr(Node *node, deparse_context *context,
appendStringInfoString(buf,
", STANDALONE NO");
break;
case IS_DOCUMENT:
get_rule_expr_paren((Node *) xexpr->args, context, false, node);
break;
}
}