Fixing a trivial typo in comment in rewriteManip.c

Started by Kyotaro HORIGUCHIalmost 8 years ago3 messages
#1Kyotaro HORIGUCHI
horiguchi.kyotaro@lab.ntt.co.jp
1 attachment(s)

While I was looking on some patch, I happened to notice that
there's a trivial typo in rewriteManip.c

a ConvertRowTypeExpr to map back to the rowtype expected by the expression.

The correct name for "ConvertRowTypeExpr" is "ConvertRowtypeExpr"

regards,

--
Kyotaro Horiguchi
NTT Open Source Software Center

Attachments:

fix_comment_in_rewriteManip_c.patchtext/x-patch; charset=us-asciiDownload
diff --git a/src/backend/rewrite/rewriteManip.c b/src/backend/rewrite/rewriteManip.c
index abad1bf7e4..f1f4212b5d 100644
--- a/src/backend/rewrite/rewriteManip.c
+++ b/src/backend/rewrite/rewriteManip.c
@@ -1205,7 +1205,7 @@ replace_rte_variables_mutator(Node *node,
  * If the expression tree contains a whole-row Var for the target RTE,
  * *found_whole_row is set to true.  In addition, if to_rowtype is
  * not InvalidOid, we replace the Var with a Var of that vartype, inserting
- * a ConvertRowTypeExpr to map back to the rowtype expected by the expression.
+ * a ConvertRowtypeExpr to map back to the rowtype expected by the expression.
  * (Therefore, to_rowtype had better be a child rowtype of the rowtype of the
  * RTE we're changing references to.)  Callers that don't provide to_rowtype
  * should report an error if *found_row_type is true; we don't do that here
#2Heikki Linnakangas
hlinnaka@iki.fi
In reply to: Kyotaro HORIGUCHI (#1)
Re: Fixing a trivial typo in comment in rewriteManip.c

On 09/04/18 13:26, Kyotaro HORIGUCHI wrote:

While I was looking on some patch, I happened to notice that
there's a trivial typo in rewriteManip.c

a ConvertRowTypeExpr to map back to the rowtype expected by the expression.

The correct name for "ConvertRowTypeExpr" is "ConvertRowtypeExpr"

Fixed, thanks!

- Heikki

#3Kyotaro HORIGUCHI
horiguchi.kyotaro@lab.ntt.co.jp
In reply to: Heikki Linnakangas (#2)
Re: Fixing a trivial typo in comment in rewriteManip.c

At Mon, 9 Apr 2018 14:22:33 +0300, Heikki Linnakangas <hlinnaka@iki.fi> wrote in <4ee784f4-a7c6-dced-0d4c-0a2ac5b87777@iki.fi>

On 09/04/18 13:26, Kyotaro HORIGUCHI wrote:

While I was looking on some patch, I happened to notice that
there's a trivial typo in rewriteManip.c

a ConvertRowTypeExpr to map back to the rowtype expected by the
expression.

The correct name for "ConvertRowTypeExpr" is "ConvertRowtypeExpr"

Fixed, thanks!

Thanks!

--
Kyotaro Horiguchi
NTT Open Source Software Center