Skip to content

Commit 3d25b4e

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 parent d9a38c5 commit 3d25b4e

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
static void
3416-
_outValue(StringInfo str, const Value *value)
3416+
_outValue(StringInfo str, const Value *node)
34173417
{
3418-
switch (value->type)
3418+
switch (node->type)
34193419
{
34203420
case T_Integer:
3421-
appendStringInfo(str, "%d", value->val.ival);
3421+
appendStringInfo(str, "%d", node->val.ival);
34223422
break;
34233423
case T_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
case T_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
case T_BitString:
34433443
/* internal representation already has leading 'b' */
3444-
appendStringInfoString(str, value->val.str);
3444+
appendStringInfoString(str, node->val.str);
34453445
break;
34463446
case T_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)