Commit cb8906b3 authored by Peter Eisentraut's avatar Peter Eisentraut

Fix reverse compilation of IS DOCUMENT expression.

parent a62e2c2b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ruleutils.c - Functions to convert stored expressions/querytrees * ruleutils.c - Functions to convert stored expressions/querytrees
* back to source text * 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" #include "postgres.h"
...@@ -3890,7 +3890,6 @@ get_rule_expr(Node *node, deparse_context *context, ...@@ -3890,7 +3890,6 @@ get_rule_expr(Node *node, deparse_context *context,
case IS_XMLELEMENT: case IS_XMLELEMENT:
case IS_XMLFOREST: case IS_XMLFOREST:
case IS_XMLPI: case IS_XMLPI:
case IS_DOCUMENT:
/* no extra decoration needed */ /* no extra decoration needed */
get_rule_expr((Node *) xexpr->args, context, true); get_rule_expr((Node *) xexpr->args, context, true);
break; break;
...@@ -3943,6 +3942,9 @@ get_rule_expr(Node *node, deparse_context *context, ...@@ -3943,6 +3942,9 @@ get_rule_expr(Node *node, deparse_context *context,
appendStringInfoString(buf, appendStringInfoString(buf,
", STANDALONE NO"); ", STANDALONE NO");
break; break;
case IS_DOCUMENT:
get_rule_expr_paren((Node *) xexpr->args, context, false, node);
break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment