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

From: lakshmi <lakshmigcdac(at)gmail(dot)com>
To: "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>
Cc: "Masashi Kamura (Fujitsu)" <kamura(dot)masashi(at)fujitsu(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.”
Date: 2026-04-20 07:18:48
Message-ID: CAEvyyTjqtgyyGagxV7qoqd4nQ-kps=SeDKfYO8g_Lg0CXDTAjg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I was able to reproduce this issue.

The precompiler accepts:

EXEC SQL GET DESCRIPTOR d :desc_count1 = count, :desc_count2 = count;

but generates invalid C code with concatenated variables, which fails at
compile time.

After applying the patch and rebuilding ecpg, the same statement is now
rejected during preprocessing with a syntax error. So the patch works as
expected.

Thanks for the fix.

Regards,
Lakshmi G

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Guo 2026-04-20 07:29:04 Re: Bug: Rule actions see wrong values for generated columns (NEW.gen reads OLD value)
Previous Message Peter Smith 2026-04-20 07:14:25 Re: DOCS - CREATE PUBLICATION ... EXCEPT missing details on ONLY