Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VjxC7-0003i0-PW for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Nov 2013 20:19:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VjxC7-0007wg-4I for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Nov 2013 20:19:15 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VjxC6-0007vT-1g for pgsql-bugs@postgresql.org; Fri, 22 Nov 2013 20:19:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VjxC3-0000yz-Jq; Fri, 22 Nov 2013 20:19:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id rAMKJAi4024808; Fri, 22 Nov 2013 15:19:10 -0500 From: Tom Lane To: Michael Meskes cc: alexsav23@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #8611: ECPG: unclosed comment "/*" In-reply-to: <20131122184613.GA13590@feivel.credativ.lan> References: <20131122184613.GA13590@feivel.credativ.lan> Comments: In-reply-to Michael Meskes message dated "Fri, 22 Nov 2013 19:46:13 +0100" Date: Fri, 22 Nov 2013 15:19:10 -0500 Message-ID: <24807.1385151550@sss.pgh.pa.us> X-Pg-Spam-Score: -1.0 (-) 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 Michael Meskes 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