Re: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.”

Fujii Masao <masao.fujii@gmail.com>

From: Fujii Masao <masao.fujii@gmail.com>
To: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Cc: "Masashi Kamura (Fujitsu)" <kamura.masashi@fujitsu.com>, pgsql-hackers <pgsql-hackers@postgresql.org>, lakshmi <lakshmigcdac@gmail.com>
Date: 2026-05-29T03:11:38Z
Lists: pgsql-hackers

Attachments

On Mon, Apr 27, 2026 at 11:39 AM Hayato Kuroda (Fujitsu)
<kuroda.hayato@fujitsu.com> wrote:
>
> Hi hackers,
>
> Overall: The author found the case pre-compilation could succeed but the actual
> compilation would fail, with SET/GET DESCRIPTOR. This patch tries to detect the
> pre-compilation phase and raise a failure.

The patch looks good to me.
Barring any objections, I'm thinking to commit it.

> Based on the SQL standard/other
> DBMSs/history, it's not meaningful to allow the statement.
> This does not contain tests because we cannot compile such a test program in the
> first place.

I'm not sure this case warrants regression tests, but if we need them,
the attached patch adds them.

Regards,

-- 
Fujii Masao