Skip to content

Commit 1c5818b

Browse files
committed
Remove redundant spaces in _outA_Expr() output
Since WRITE_NODE_FIELD() output always starts with a space, we don't need to go out of our way to print another space right before it. This change is only for visual appearance; the tokenizer on the reading side would read it the same way (but there is no read support for A_Expr at this time anyway).
1 parent f6c750d commit 1c5818b

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

src/backend/nodes/outfuncs.c

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -545,61 +545,58 @@ _outA_Expr(StringInfo str, const A_Expr *node)
545545
switch (node->kind)
546546
{
547547
case AEXPR_OP:
548-
appendStringInfoChar(str, ' ');
549548
WRITE_NODE_FIELD(name);
550549
break;
551550
case AEXPR_OP_ANY:
552-
appendStringInfoChar(str, ' ');
553551
WRITE_NODE_FIELD(name);
554-
appendStringInfoString(str, " ANY ");
552+
appendStringInfoString(str, " ANY");
555553
break;
556554
case AEXPR_OP_ALL:
557-
appendStringInfoChar(str, ' ');
558555
WRITE_NODE_FIELD(name);
559-
appendStringInfoString(str, " ALL ");
556+
appendStringInfoString(str, " ALL");
560557
break;
561558
case AEXPR_DISTINCT:
562-
appendStringInfoString(str, " DISTINCT ");
559+
appendStringInfoString(str, " DISTINCT");
563560
WRITE_NODE_FIELD(name);
564561
break;
565562
case AEXPR_NOT_DISTINCT:
566-
appendStringInfoString(str, " NOT_DISTINCT ");
563+
appendStringInfoString(str, " NOT_DISTINCT");
567564
WRITE_NODE_FIELD(name);
568565
break;
569566
case AEXPR_NULLIF:
570-
appendStringInfoString(str, " NULLIF ");
567+
appendStringInfoString(str, " NULLIF");
571568
WRITE_NODE_FIELD(name);
572569
break;
573570
case AEXPR_IN:
574-
appendStringInfoString(str, " IN ");
571+
appendStringInfoString(str, " IN");
575572
WRITE_NODE_FIELD(name);
576573
break;
577574
case AEXPR_LIKE:
578-
appendStringInfoString(str, " LIKE ");
575+
appendStringInfoString(str, " LIKE");
579576
WRITE_NODE_FIELD(name);
580577
break;
581578
case AEXPR_ILIKE:
582-
appendStringInfoString(str, " ILIKE ");
579+
appendStringInfoString(str, " ILIKE");
583580
WRITE_NODE_FIELD(name);
584581
break;
585582
case AEXPR_SIMILAR:
586-
appendStringInfoString(str, " SIMILAR ");
583+
appendStringInfoString(str, " SIMILAR");
587584
WRITE_NODE_FIELD(name);
588585
break;
589586
case AEXPR_BETWEEN:
590-
appendStringInfoString(str, " BETWEEN ");
587+
appendStringInfoString(str, " BETWEEN");
591588
WRITE_NODE_FIELD(name);
592589
break;
593590
case AEXPR_NOT_BETWEEN:
594-
appendStringInfoString(str, " NOT_BETWEEN ");
591+
appendStringInfoString(str, " NOT_BETWEEN");
595592
WRITE_NODE_FIELD(name);
596593
break;
597594
case AEXPR_BETWEEN_SYM:
598-
appendStringInfoString(str, " BETWEEN_SYM ");
595+
appendStringInfoString(str, " BETWEEN_SYM");
599596
WRITE_NODE_FIELD(name);
600597
break;
601598
case AEXPR_NOT_BETWEEN_SYM:
602-
appendStringInfoString(str, " NOT_BETWEEN_SYM ");
599+
appendStringInfoString(str, " NOT_BETWEEN_SYM");
603600
WRITE_NODE_FIELD(name);
604601
break;
605602
default:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy