From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Meskes <meskes@postgresql.org>
Cc: alexsav23@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8611: ECPG: unclosed comment "/*"
Date: Fri, 22 Nov 2013 15:19:10 -0500
Message-ID: <24807.1385151550@sss.pgh.pa.us> (raw)
In-Reply-To: <20131122184613.GA13590@feivel.credativ.lan>
References: <E1Vj5nW-0001fr-Hi@wrigleys.postgresql.org>
<20131122184613.GA13590@feivel.credativ.lan>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Michael Meskes <meskes@postgresql.org> writes:
> On Wed, Nov 20, 2013 at 11:18:18AM +0000, alexsav23@gmail.com wrote:
>> pre-compiler don't work if we have unclosed comment:
> Right, this comes from ecpg using the same rules for C-style commands for SQL
> code and C code. However, this is not correct, I agree. SQL allows for nested
> comments while C does not. This needs fixing.
I don't see any way to "fix" it --- the best you can do is have a
different set of users complaining, because C and SQL aren't consistent
about this, and it's not obvious which convention should be followed
where.
Perhaps we should just document that you should avoid nested comments
in ecpg source code.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, meskes@postgresql.org, alexsav23@gmail.com
Subject: Re: BUG #8611: ECPG: unclosed comment "/*"
In-Reply-To: <24807.1385151550@sss.pgh.pa.us>
References: <E1Vj5nW-0001fr-Hi@wrigleys.postgresql.org> <20131122184613.GA13590@feivel.credativ.lan> <24807.1385151550@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