Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfa9a95d

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

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
caseIS_NULL:
1959-
appendStringInfo(buf,") IS NULL)");
1959+
appendStringInfo(buf," IS NULL)");
19601960
break;
19611961
caseIS_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
caseIS_TRUE:
1980-
appendStringInfo(buf,") IS TRUE)");
1980+
appendStringInfo(buf," IS TRUE)");
19811981
break;
19821982
caseIS_NOT_TRUE:
1983-
appendStringInfo(buf,") IS NOT TRUE)");
1983+
appendStringInfo(buf," IS NOT TRUE)");
19841984
break;
19851985
caseIS_FALSE:
1986-
appendStringInfo(buf,") IS FALSE)");
1986+
appendStringInfo(buf," IS FALSE)");
19871987
break;
19881988
caseIS_NOT_FALSE:
1989-
appendStringInfo(buf,") IS NOT FALSE)");
1989+
appendStringInfo(buf," IS NOT FALSE)");
19901990
break;
19911991
caseIS_UNKNOWN:
1992-
appendStringInfo(buf,") IS UNKNOWN)");
1992+
appendStringInfo(buf," IS UNKNOWN)");
19931993
break;
19941994
caseIS_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)

[8]ページ先頭

©2009-2025 Movatter.jp