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

Commit1c5818b

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

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
caseAEXPR_OP:
548-
appendStringInfoChar(str,' ');
549548
WRITE_NODE_FIELD(name);
550549
break;
551550
caseAEXPR_OP_ANY:
552-
appendStringInfoChar(str,' ');
553551
WRITE_NODE_FIELD(name);
554-
appendStringInfoString(str," ANY");
552+
appendStringInfoString(str," ANY");
555553
break;
556554
caseAEXPR_OP_ALL:
557-
appendStringInfoChar(str,' ');
558555
WRITE_NODE_FIELD(name);
559-
appendStringInfoString(str," ALL");
556+
appendStringInfoString(str," ALL");
560557
break;
561558
caseAEXPR_DISTINCT:
562-
appendStringInfoString(str," DISTINCT");
559+
appendStringInfoString(str," DISTINCT");
563560
WRITE_NODE_FIELD(name);
564561
break;
565562
caseAEXPR_NOT_DISTINCT:
566-
appendStringInfoString(str," NOT_DISTINCT");
563+
appendStringInfoString(str," NOT_DISTINCT");
567564
WRITE_NODE_FIELD(name);
568565
break;
569566
caseAEXPR_NULLIF:
570-
appendStringInfoString(str," NULLIF");
567+
appendStringInfoString(str," NULLIF");
571568
WRITE_NODE_FIELD(name);
572569
break;
573570
caseAEXPR_IN:
574-
appendStringInfoString(str," IN");
571+
appendStringInfoString(str," IN");
575572
WRITE_NODE_FIELD(name);
576573
break;
577574
caseAEXPR_LIKE:
578-
appendStringInfoString(str," LIKE");
575+
appendStringInfoString(str," LIKE");
579576
WRITE_NODE_FIELD(name);
580577
break;
581578
caseAEXPR_ILIKE:
582-
appendStringInfoString(str," ILIKE");
579+
appendStringInfoString(str," ILIKE");
583580
WRITE_NODE_FIELD(name);
584581
break;
585582
caseAEXPR_SIMILAR:
586-
appendStringInfoString(str," SIMILAR");
583+
appendStringInfoString(str," SIMILAR");
587584
WRITE_NODE_FIELD(name);
588585
break;
589586
caseAEXPR_BETWEEN:
590-
appendStringInfoString(str," BETWEEN");
587+
appendStringInfoString(str," BETWEEN");
591588
WRITE_NODE_FIELD(name);
592589
break;
593590
caseAEXPR_NOT_BETWEEN:
594-
appendStringInfoString(str," NOT_BETWEEN");
591+
appendStringInfoString(str," NOT_BETWEEN");
595592
WRITE_NODE_FIELD(name);
596593
break;
597594
caseAEXPR_BETWEEN_SYM:
598-
appendStringInfoString(str," BETWEEN_SYM");
595+
appendStringInfoString(str," BETWEEN_SYM");
599596
WRITE_NODE_FIELD(name);
600597
break;
601598
caseAEXPR_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)

[8]ページ先頭

©2009-2025 Movatter.jp