mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
Fix reverse compilation of IS DOCUMENT expression.
This commit is contained in:
parent
a62e2c2b57
commit
cb8906b354
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user