Re: The keyword in the procedure's error message is "function", which should be "procedure"

From: Junwang Zhao <zhjwpku(at)gmail(dot)com>
To: qtds_126 <qtds_126(at)126(dot)com>
Cc: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: The keyword in the procedure's error message is "function", which should be "procedure"
Date: 2022-09-21 11:46:03
Message-ID: CAEG8a3LW9mUqNRFN3s1kDA_vmZNd34wg2yoacRq9kT5XF3sXVQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I've submitted a patch to resolve this issue, waiting for reviews.

Thanks.

On Wed, Sep 21, 2022 at 7:13 PM qtds_126 <qtds_126(at)126(dot)com> wrote:

> *Bug Report*
>
> When an existing procedure is created in the database, an error message is
> prompted for an existing procedure.
> But the error message says "function" type.
>
> *PostgreSQL version*
> 11~15
> *Test SQL*
>
> create procedure proc_insert_t_pg_varchar(id int, v varchar)
> language plpgsql
> as $$
> declare
> iid int;
> vv varchar(5);
> begin
> iid = id;
> vv = v;
> insert into t_pg_varchar values(iid, vv);
> end;
> $$;
>
> *Test result*
>
> *Expected behavior*
>
> When an error occurs in procedure, the keyword is changed from "function"
> to "procedure".
>
>
> Thanks.
>

--
Regards
Junwang Zhao

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Junwang Zhao 2022-09-21 15:05:12 Re: The keyword in the procedure's error message is "function", which should be "procedure"
Previous Message Robins Tharakan 2022-09-21 11:18:24 Re: PANIC in heap_delete during ALTER TABLE