Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bnBeH-0006Cr-9B for pgsql-bugs@arkaria.postgresql.org; Thu, 22 Sep 2016 21:35:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bnBeG-0004W8-P0 for pgsql-bugs@arkaria.postgresql.org; Thu, 22 Sep 2016 21:35:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bnBdb-0003fW-M6 for pgsql-bugs@postgresql.org; Thu, 22 Sep 2016 21:34:35 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bnBdY-0005np-2Y for pgsql-bugs@postgresql.org; Thu, 22 Sep 2016 21:34:34 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1bnBdV-0004VV-OX; Thu, 22 Sep 2016 17:34:29 -0400 Date: Thu, 22 Sep 2016 17:34:29 -0400 From: Bruce Momjian To: Haribabu Kommi Cc: t.katsumata1122@gmail.com, "pgsql-bugs@postgresql.org" Subject: Re: BUG #14314: Mismatch of comment of a function. Message-ID: <20160922213429.GA18637@momjian.us> References: <20160907134242.1413.57576@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Thanks, patch applied. --------------------------------------------------------------------------- On Mon, Sep 12, 2016 at 11:04:14AM +1000, Haribabu Kommi wrote: > > > On Wed, Sep 7, 2016 at 11:42 PM, 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 > diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c > index eac86cc..d9085fe 100644 > --- a/src/backend/parser/analyze.c > +++ b/src/backend/parser/analyze.c > @@ -938,7 +938,7 @@ transformInsertRow(ParseState *pstate, List *exprlist, > } > > /* > - * transformSelectStmt - > + * transformOnConflictClause - > * transforms an OnConflictClause in an INSERT > */ > static OnConflictExpr * > > -- > Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-bugs -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs