Fix typo in comment of transformJsonAggConstructor()
authorAmit Langote <[email protected]>
Wed, 16 Oct 2024 09:11:53 +0000 (18:11 +0900)
committerAmit Langote <[email protected]>
Wed, 16 Oct 2024 11:37:02 +0000 (20:37 +0900)
An oversight of 3a8a1f3254b.

Reported-by: Tender Wang <[email protected]>
Author: Tender Wang <[email protected]>
Backpatch-through: 16

src/backend/parser/parse_expr.c

index 36c1b7a88f2c3684d6d58dac5c5e27a5d885e783..ef0b560f5e3bfdbdabdbe476ff308786f68e13aa 100644 (file)
@@ -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