v2-0002-Fix-typo-in-comment-of-transformJsonAggConstructo.patch
application/octet-stream
Filename: v2-0002-Fix-typo-in-comment-of-transformJsonAggConstructo.patch
Type: application/octet-stream
Part: 1
Patch
Format: format-patch
Series: patch v2-0002
Subject: Fix typo in comment of transformJsonAggConstructor()
| File | + | − |
|---|---|---|
| src/backend/parser/parse_expr.c | 1 | 1 |
From 0883e6327f1d709e744fcf6fe28dd4cd91885a65 Mon Sep 17 00:00:00 2001 From: Amit Langote <amitlan@postgresql.org> Date: Wed, 16 Oct 2024 18:11:53 +0900 Subject: [PATCH v2 2/2] Fix typo in comment of transformJsonAggConstructor() An oversight of 3a8a1f3254b. Reported-by: Tender Wang <tndrwang@gmail.com> Author: Tender Wang <tndrwang@gmail.com> Backpatch-through: 16 --- src/backend/parser/parse_expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c index 36c1b7a88f..ef0b560f5e 100644 --- a/src/backend/parser/parse_expr.c +++ b/src/backend/parser/parse_expr.c @@ -3890,7 +3890,7 @@ transformJsonAggConstructor(ParseState *pstate, JsonAggConstructor *agg_ctor, /* * Transform JSON_OBJECTAGG() aggregate function. * - * JSON_OBJECT() is transformed into a JsonConstructorExpr node of type + * JSON_OBJECTAGG() is transformed into a JsonConstructorExpr node of type * JSCTOR_JSON_OBJECTAGG, which at runtime becomes a * json[b]_object_agg[_unique][_strict](agg->arg->key, agg->arg->value) call * depending on the output JSON format. The result is coerced to the target -- 2.43.0