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

Commit3d25b4e

Browse files
committed
Rename argument of _outValue()
Rename from value to node, for consistency with similar functions.Discussion:https://www.postgresql.org/message-id/flat/c1097590-a6a4-486a-64b1-e1f9cc0533ce@enterprisedb.com
1 parentd9a38c5 commit3d25b4e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎src/backend/nodes/outfuncs.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3413,20 +3413,20 @@ _outAExpr(StringInfo str, const A_Expr *node)
34133413
}
34143414

34153415
staticvoid
3416-
_outValue(StringInfostr,constValue*value)
3416+
_outValue(StringInfostr,constValue*node)
34173417
{
3418-
switch (value->type)
3418+
switch (node->type)
34193419
{
34203420
caseT_Integer:
3421-
appendStringInfo(str,"%d",value->val.ival);
3421+
appendStringInfo(str,"%d",node->val.ival);
34223422
break;
34233423
caseT_Float:
34243424

34253425
/*
34263426
* We assume the value is a valid numeric literal and so does not
34273427
* need quoting.
34283428
*/
3429-
appendStringInfoString(str,value->val.str);
3429+
appendStringInfoString(str,node->val.str);
34303430
break;
34313431
caseT_String:
34323432

@@ -3435,20 +3435,20 @@ _outValue(StringInfo str, const Value *value)
34353435
* but we don't want it to do anything with an empty string.
34363436
*/
34373437
appendStringInfoChar(str,'"');
3438-
if (value->val.str[0]!='\0')
3439-
outToken(str,value->val.str);
3438+
if (node->val.str[0]!='\0')
3439+
outToken(str,node->val.str);
34403440
appendStringInfoChar(str,'"');
34413441
break;
34423442
caseT_BitString:
34433443
/* internal representation already has leading 'b' */
3444-
appendStringInfoString(str,value->val.str);
3444+
appendStringInfoString(str,node->val.str);
34453445
break;
34463446
caseT_Null:
34473447
/* this is seen only within A_Const, not in transformed trees */
34483448
appendStringInfoString(str,"NULL");
34493449
break;
34503450
default:
3451-
elog(ERROR,"unrecognized node type: %d", (int)value->type);
3451+
elog(ERROR,"unrecognized node type: %d", (int)node->type);
34523452
break;
34533453
}
34543454
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp