Re: BUG #14314: Mismatch of comment of a function. - Mailing list pgsql-bugs

From Haribabu Kommi
Subject Re: BUG #14314: Mismatch of comment of a function.
Date
Msg-id CAJrrPGcis2R7jW8Cb_UKdC4qmB0cMxtgJAmEyCm_pBuSpx0OLg@mail.gmail.com
Whole thread Raw
In response to BUG #14314: Mismatch of comment of a function.  (t.katsumata1122@gmail.com)
Responses Re: BUG #14314: Mismatch of comment of a function.  (Bruce Momjian <bruce@momjian.us>)
List pgsql-bugs


On Wed, Sep 7, 2016 at 11:42 PM, <t.katsumata1122@gmail.com> wrote:
The following bug has been logged on the website:

Bug reference:      14314
Logged by:          Tomonari Katsumata
Email address:      t.katsumata1122@gmail.com
PostgreSQL version: 9.6rc1
Operating system:   Source Code
Description:

Hello.

I noticed that it isn't proper for a comment  for
transformOnConflictClause.

---
 940 /*
 941  * transformSelectStmt -
 942  *    transforms an OnConflictClause in an INSERT
 943  */
 944 static OnConflictExpr *
 945 transformOnConflictClause(ParseState *pstate,
 946                           OnConflictClause *onConflictClause)
 947 {
----

It should be "transformOnConflictClause" rather than
"transformSelectStmt".

Attached patch fixes the reported problem. The patch needs to be
applied till the 9.5 stable branch where the on conflict is introduced.


Regards,
Hari Babu
Fujitsu Australia
Attachment

pgsql-bugs by date:

Previous
From: Jürgen Strobel
Date:
Subject: Re: BUG #14321: pg_basebackup --xlog-method=stream fails
Next
From: lilacyd@gmail.com
Date:
Subject: BUG #14323: char input does not work