Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vkrf3-0006ph-JL for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Nov 2013 08:36:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vkrf3-0007ak-2r for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Nov 2013 08:36:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vkrf2-0007ad-4X for pgsql-bugs@postgresql.org; Mon, 25 Nov 2013 08:36:52 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vkrev-0001D3-3z; Mon, 25 Nov 2013 08:36:51 +0000 Received: from feivel (wan3.credativ.com [94.79.138.166]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mme@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id C82471B6088; Mon, 25 Nov 2013 09:36:44 +0100 (CET) Received: by feivel (Postfix, from userid 1000) id 8E4F59F114; Mon, 25 Nov 2013 09:36:44 +0100 (CET) Date: Mon, 25 Nov 2013 09:36:44 +0100 From: Michael Meskes To: Tom Lane Cc: Michael Meskes , alexsav23@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #8611: ECPG: unclosed comment "/*" Message-ID: <20131125083644.GB16770@feivel.credativ.lan> References: <20131122184613.GA13590@feivel.credativ.lan> <24807.1385151550@sss.pgh.pa.us> <20131124113010.GC28081@feivel.credativ.lan> <21130.1385309397@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <21130.1385309397@sss.pgh.pa.us> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Sun, Nov 24, 2013 at 11:09:57AM -0500, Tom Lane wrote: > Does it? In the example at hand, the questionable comment was after some > C code and before some SQL code. I'd say it's just about exactly 50-50 Yes, it does. Everything between EXEC SQL and the semicolon is SQL by definition, the rest is C. > odds as to whether the user will think that C or SQL conventions should > apply at that spot. I remain of the opinion that changing behavior here > will annoy more people than it will help. I don't agree. Please keep in mind that ecpg can spit out illegal C-code as it is now. It accepts and outputs nested comments that the C compiler obviously does not accept. Or in other words, I cannot see that people have code that's broken by the change I made. BTW I did notice that the patch is incomplete, though. I need to add another another check or the nested comments still get put into the C file. > In any case, you won't make any friends at all unless you can document > exactly what the behavior is (and I'm disappointed to see that your > behavior-changing commit did not touch the documentation). There might > be some reason to change if the new behavior is more easily explainable > than the old. I'm absolutely willing to check and update the docs, but didn't so far because I see this as a bug that got fixed and not a new or changed feature. So far there is nothing about comments in the docs at all AFAICT. I'd expect people to expect standard C behaviour. Michael -- Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org Jabber: michael.meskes at gmail dot com VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs