Re: ECPG bug: "unterminated quoted identifier"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: 1250kv <1250kv(at)gmail(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: ECPG bug: "unterminated quoted identifier"
Date: 2020-10-20 17:23:18
Message-ID: 652858.1603214598@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

1250kv <1250kv(at)gmail(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Markus Wanner 2020-10-20 17:29:02 Re: invalid alloc size error possible in shm_mq
Previous Message David G. Johnston 2020-10-20 17:00:20 Re: ECPG bug: PRAPARE FOR