Re: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.”
lakshmi <lakshmigcdac@gmail.com>
From: lakshmi <lakshmigcdac@gmail.com>
To: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Cc: "Masashi Kamura (Fujitsu)" <kamura.masashi@fujitsu.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2026-04-20T07:18:48Z
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
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
ecpg: Reject multiple header items in GET/SET DESCRIPTOR
- 9e8fd9f7ab56 14 (unreleased) landed
- bfeddcf09b68 15 (unreleased) landed
- 4d4b73cfd27d 16 (unreleased) landed
- fe8c0a762b30 17 (unreleased) landed
- 081434b0f582 18 (unreleased) landed
- 4484165b0712 19 (unreleased) landed