Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fa9a95d

Browse files
committed
Remove unnecessarily enthusiastic parenthesizing in reverse-listing of
IS NULL, IS TRUE, and friends (my fault...)
1 parent cb052e0 commit fa9a95d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/backend/utils/adt/ruleutils.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* back to source text
44
*
55
* IDENTIFICATION
6-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.78 2001/06/19 22:39:12 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.79 2001/07/10 00:02:02 tgl Exp $
77
*
88
* This software is copyrighted by Jan Wieck - Hamburg.
99
*
@@ -1951,15 +1951,15 @@ get_rule_expr(Node *node, deparse_context *context)
19511951
{
19521952
NullTest *ntest = (NullTest *) node;
19531953

1954-
appendStringInfo(buf, "((");
1954+
appendStringInfo(buf, "(");
19551955
get_rule_expr(ntest->arg, context);
19561956
switch (ntest->nulltesttype)
19571957
{
19581958
case IS_NULL:
1959-
appendStringInfo(buf, ") IS NULL)");
1959+
appendStringInfo(buf, " IS NULL)");
19601960
break;
19611961
case IS_NOT_NULL:
1962-
appendStringInfo(buf, ") IS NOT NULL)");
1962+
appendStringInfo(buf, " IS NOT NULL)");
19631963
break;
19641964
default:
19651965
elog(ERROR, "get_rule_expr: unexpected nulltesttype %d",
@@ -1972,27 +1972,27 @@ get_rule_expr(Node *node, deparse_context *context)
19721972
{
19731973
BooleanTest *btest = (BooleanTest *) node;
19741974

1975-
appendStringInfo(buf, "((");
1975+
appendStringInfo(buf, "(");
19761976
get_rule_expr(btest->arg, context);
19771977
switch (btest->booltesttype)
19781978
{
19791979
case IS_TRUE:
1980-
appendStringInfo(buf, ") IS TRUE)");
1980+
appendStringInfo(buf, " IS TRUE)");
19811981
break;
19821982
case IS_NOT_TRUE:
1983-
appendStringInfo(buf, ") IS NOT TRUE)");
1983+
appendStringInfo(buf, " IS NOT TRUE)");
19841984
break;
19851985
case IS_FALSE:
1986-
appendStringInfo(buf, ") IS FALSE)");
1986+
appendStringInfo(buf, " IS FALSE)");
19871987
break;
19881988
case IS_NOT_FALSE:
1989-
appendStringInfo(buf, ") IS NOT FALSE)");
1989+
appendStringInfo(buf, " IS NOT FALSE)");
19901990
break;
19911991
case IS_UNKNOWN:
1992-
appendStringInfo(buf, ") IS UNKNOWN)");
1992+
appendStringInfo(buf, " IS UNKNOWN)");
19931993
break;
19941994
case IS_NOT_UNKNOWN:
1995-
appendStringInfo(buf, ") IS NOT UNKNOWN)");
1995+
appendStringInfo(buf, " IS NOT UNKNOWN)");
19961996
break;
19971997
default:
19981998
elog(ERROR, "get_rule_expr: unexpected booltesttype %d",

0 commit comments

Comments
 (0)