Fix a typo in rewriteHandler.c

Started by kato-sho@fujitsu.comalmost 3 years ago3 messageshackers
Jump to latest
#1kato-sho@fujitsu.com
kato-sho@fujitsu.com

Hi,

I've attached the patch for the following rewriteTargetView comments.

Assert(parsetree->resultRelation == new_rt_index);

/*
* For INSERT/UPDATE we must also update resnos in the targetlist to refer
* to columns of the base relation, since those indicate the target
* columns to be affected.
*
* Note that this destroys the resno ordering of the targetlist, but that
* will be fixed when we recurse through rewriteQuery, which will invoke
* rewriteTargetListIU again on the updated targetlist.
*/
if (parsetree->commandType != CMD_DELETE)
{
foreach(lc, parsetree->targetList)

s/rewriteQuery/RewriteQuery

regards,
Sho Kato

Attachments:

fix_typo_rewriteHandler.ctext/plain; name=fix_typo_rewriteHandler.cDownload+1-1
#2Amit Langote
Langote_Amit_f8@lab.ntt.co.jp
In reply to: kato-sho@fujitsu.com (#1)
Re: Fix a typo in rewriteHandler.c

Hello,

On Thu, Jun 15, 2023 at 5:07 PM Sho Kato (Fujitsu) <kato-sho@fujitsu.com> wrote:

Hi,

I've attached the patch for the following rewriteTargetView comments.

Assert(parsetree->resultRelation == new_rt_index);

/*
* For INSERT/UPDATE we must also update resnos in the targetlist to refer
* to columns of the base relation, since those indicate the target
* columns to be affected.
*
* Note that this destroys the resno ordering of the targetlist, but that
* will be fixed when we recurse through rewriteQuery, which will invoke
* rewriteTargetListIU again on the updated targetlist.
*/
if (parsetree->commandType != CMD_DELETE)
{
foreach(lc, parsetree->targetList)

s/rewriteQuery/RewriteQuery

Good catch and thanks for the patch. Will push shortly.

--
Thanks, Amit Langote
EDB: http://www.enterprisedb.com

#3Amit Langote
Langote_Amit_f8@lab.ntt.co.jp
In reply to: Amit Langote (#2)
Re: Fix a typo in rewriteHandler.c

On Fri, Jun 16, 2023 at 10:25 AM Amit Langote <amitlangote09@gmail.com> wrote:

On Thu, Jun 15, 2023 at 5:07 PM Sho Kato (Fujitsu) <kato-sho@fujitsu.com> wrote:

I've attached the patch for the following rewriteTargetView comments.

s/rewriteQuery/RewriteQuery

Good catch and thanks for the patch. Will push shortly.

Done.

--
Thanks, Amit Langote
EDB: http://www.enterprisedb.com