| From: | "Masashi Kamura (Fujitsu)" <kamura(dot)masashi(at)fujitsu(dot)com> |
|---|---|
| To: | 'lakshmi' <lakshmigcdac(at)gmail(dot)com> |
| Cc: | "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(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-21 08:50:24 |
| Message-ID: | OS9PR01MB13174C0B02AF88314FFFFEB3E942C2@OS9PR01MB13174.jpnprd01.prod.outlook.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi Lakshmi,
Thanks for confirming that the issue can be reproduced.
Regards,
Masashi Kamura
Fujitsu Limited
From: lakshmi <lakshmigcdac(at)gmail(dot)com>
Sent: Monday, April 20, 2026 4:19 PM
To: Kuroda, Hayato/黒田 隼人 <kuroda(dot)hayato(at)fujitsu(dot)com>
Cc: Kamura, Masashi/嘉村 雅志 <kamura(dot)masashi(at)fujitsu(dot)com>; pgsql-hackers(at)postgresql(dot)org
Subject: Re: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.”
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ayush Tiwari | 2026-04-21 08:51:06 | Re: [PATCH] Fix duplicate errmsg in ALTER TABLE SPLIT PARTITION |
| Previous Message | Evgeny Voropaev | 2026-04-21 08:48:06 | Re: Compress prune/freeze records with Delta Frame of Reference algorithm |