pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14314: Mismatch of comment of a function.
3+ messages / 3 participants
[nested] [flat]
* BUG #14314: Mismatch of comment of a function.
@ 2016-09-07 13:42 t.katsumata1122@gmail.com
2016-09-12 01:04 ` Re: BUG #14314: Mismatch of comment of a function. Haribabu Kommi <kommi.haribabu@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: t.katsumata1122@gmail.com @ 2016-09-07 13:42 UTC (permalink / raw)
To: pgsql-bugs
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".
Best regards,
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #14314: Mismatch of comment of a function.
2016-09-07 13:42 BUG #14314: Mismatch of comment of a function. t.katsumata1122@gmail.com
@ 2016-09-12 01:04 ` Haribabu Kommi <kommi.haribabu@gmail.com>
2016-09-22 21:34 ` Re: BUG #14314: Mismatch of comment of a function. Bruce Momjian <bruce@momjian.us>
0 siblings, 1 reply; 3+ messages in thread
From: Haribabu Kommi @ 2016-09-12 01:04 UTC (permalink / raw)
To: t.katsumata1122@gmail.com; +Cc: 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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Attachments:
function_header_comment_fix.patch (application/octet-stream, 395B) download
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 *
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #14314: Mismatch of comment of a function.
2016-09-07 13:42 BUG #14314: Mismatch of comment of a function. t.katsumata1122@gmail.com
2016-09-12 01:04 ` Re: BUG #14314: Mismatch of comment of a function. Haribabu Kommi <kommi.haribabu@gmail.com>
@ 2016-09-22 21:34 ` Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 3+ messages in thread
From: Bruce Momjian @ 2016-09-22 21:34 UTC (permalink / raw)
To: Haribabu Kommi <kommi.haribabu@gmail.com>; +Cc: pgsql-bugs
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, <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
> 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 <bruce@momjian.us> 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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2016-09-22 21:34 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-09-07 13:42 BUG #14314: Mismatch of comment of a function. t.katsumata1122@gmail.com
2016-09-12 01:04 ` Haribabu Kommi <kommi.haribabu@gmail.com>
2016-09-22 21:34 ` Bruce Momjian <bruce@momjian.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox