pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: 1250kv <1250kv@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: ECPG bug: "unterminated quoted identifier"
Date: Tue, 20 Oct 2020 13:23:18 -0400
Message-ID: <652858.1603214598@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+4qtLct1L=gUordX4c_AdctJ+vZBsebYYLBk18LX8dLHthktg@mail.gmail.com>
References: <CA+4qtLct1L=gUordX4c_AdctJ+vZBsebYYLBk18LX8dLHthktg@mail.gmail.com>

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





view thread (9+ messages)  latest in thread

Message-ID: <652858.1603214598@sss.pgh.pa.us>
Permalink:  ../652858.1603214598@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/652858.1603214598@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, 1250kv@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: ECPG bug: "unterminated quoted identifier"
  In-Reply-To: <652858.1603214598@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox