Commit fa9a95d6 authored by Tom Lane's avatar Tom Lane

Remove unnecessarily enthusiastic parenthesizing in reverse-listing of

IS NULL, IS TRUE, and friends (my fault...)
parent cb052e0b
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* back to source text * back to source text
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.78 2001/06/19 22:39:12 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.79 2001/07/10 00:02:02 tgl Exp $
* *
* This software is copyrighted by Jan Wieck - Hamburg. * This software is copyrighted by Jan Wieck - Hamburg.
* *
...@@ -1951,15 +1951,15 @@ get_rule_expr(Node *node, deparse_context *context) ...@@ -1951,15 +1951,15 @@ get_rule_expr(Node *node, deparse_context *context)
{ {
NullTest *ntest = (NullTest *) node; NullTest *ntest = (NullTest *) node;
appendStringInfo(buf, "(("); appendStringInfo(buf, "(");
get_rule_expr(ntest->arg, context); get_rule_expr(ntest->arg, context);
switch (ntest->nulltesttype) switch (ntest->nulltesttype)
{ {
case IS_NULL: case IS_NULL:
appendStringInfo(buf, ") IS NULL)"); appendStringInfo(buf, " IS NULL)");
break; break;
case IS_NOT_NULL: case IS_NOT_NULL:
appendStringInfo(buf, ") IS NOT NULL)"); appendStringInfo(buf, " IS NOT NULL)");
break; break;
default: default:
elog(ERROR, "get_rule_expr: unexpected nulltesttype %d", elog(ERROR, "get_rule_expr: unexpected nulltesttype %d",
...@@ -1972,27 +1972,27 @@ get_rule_expr(Node *node, deparse_context *context) ...@@ -1972,27 +1972,27 @@ get_rule_expr(Node *node, deparse_context *context)
{ {
BooleanTest *btest = (BooleanTest *) node; BooleanTest *btest = (BooleanTest *) node;
appendStringInfo(buf, "(("); appendStringInfo(buf, "(");
get_rule_expr(btest->arg, context); get_rule_expr(btest->arg, context);
switch (btest->booltesttype) switch (btest->booltesttype)
{ {
case IS_TRUE: case IS_TRUE:
appendStringInfo(buf, ") IS TRUE)"); appendStringInfo(buf, " IS TRUE)");
break; break;
case IS_NOT_TRUE: case IS_NOT_TRUE:
appendStringInfo(buf, ") IS NOT TRUE)"); appendStringInfo(buf, " IS NOT TRUE)");
break; break;
case IS_FALSE: case IS_FALSE:
appendStringInfo(buf, ") IS FALSE)"); appendStringInfo(buf, " IS FALSE)");
break; break;
case IS_NOT_FALSE: case IS_NOT_FALSE:
appendStringInfo(buf, ") IS NOT FALSE)"); appendStringInfo(buf, " IS NOT FALSE)");
break; break;
case IS_UNKNOWN: case IS_UNKNOWN:
appendStringInfo(buf, ") IS UNKNOWN)"); appendStringInfo(buf, " IS UNKNOWN)");
break; break;
case IS_NOT_UNKNOWN: case IS_NOT_UNKNOWN:
appendStringInfo(buf, ") IS NOT UNKNOWN)"); appendStringInfo(buf, " IS NOT UNKNOWN)");
break; break;
default: default:
elog(ERROR, "get_rule_expr: unexpected booltesttype %d", elog(ERROR, "get_rule_expr: unexpected booltesttype %d",
......
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