Re: ECPG bug: "unterminated quoted identifier" - Mailing list pgsql-bugs

From Tom Lane
Subject Re: ECPG bug: "unterminated quoted identifier"
Date
Msg-id 652858.1603214598@sss.pgh.pa.us
Whole thread Raw
In response to ECPG bug: "unterminated quoted identifier"  (1250kv <1250kv@gmail.com>)
Responses Re: ECPG bug: "unterminated quoted identifier"  (1250kv <1250kv@gmail.com>)
List pgsql-bugs
1250kv <1250kv@gmail.com> writes:
> void main()
> {
>   char *foo = "aaa\"bbb";
>   EXEC SQL char *bar = "aaa\"bbb";
> }

> ecpg sample.pgc -o 1.c
> sample .pgc:10: ERROR: unterminated quoted identifier

I don't really see a bug there.  While I'm not an ecpg expert by
any means, I'd expect the EXEC SQL section to parse quoted strings
according to SQL rules not C rules.  And under SQL, that's not
what you do to write a valid quoted identifier.

            regards, tom lane



pgsql-bugs by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: ECPG bug: PRAPARE FOR
Next
From: Markus Wanner
Date:
Subject: Re: invalid alloc size error possible in shm_mq