Re: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.” - Mailing list pgsql-hackers

From lakshmi
Subject Re: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.”
Date
Msg-id CAEvyyTjqtgyyGagxV7qoqd4nQ-kps=SeDKfYO8g_Lg0CXDTAjg@mail.gmail.com
Whole thread
In response to RE: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.”  ("Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>)
Responses RE: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.”
RE: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.”
List 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

pgsql-hackers by date:

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