Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgAA3-0002eu-T3 for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Aug 2017 13:39:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dgAA3-00063S-Ca for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Aug 2017 13:39:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dgA9M-0004o5-5U for pgsql-bugs@postgresql.org; Fri, 11 Aug 2017 13:38:52 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dgA9F-0006nc-34 for pgsql-bugs@postgresql.org; Fri, 11 Aug 2017 13:38:51 +0000 Received: from gauss.credativ.com (localhost [127.0.0.1]) by gauss.credativ.com (Postfix) with ESMTP id 2398F1E1D06; Fri, 11 Aug 2017 15:38:44 +0200 (CEST) Received: from feivel.credativ.lan (unknown [217.63.102.42]) (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 0587C1E1C46; Fri, 11 Aug 2017 15:38:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by feivel.credativ.lan (Postfix) with ESMTP id 7CCA835; Fri, 11 Aug 2017 15:38:37 +0200 (CEST) Message-ID: <1502458717.9976.323.camel@postgresql.org> Subject: Re: BUG #14754: ecpg SQL parsing error From: Michael Meskes To: zuberre@gmail.com, pgsql-bugs@postgresql.org Date: Fri, 11 Aug 2017 15:38:37 +0200 In-Reply-To: <20170721141640.19351.88347@wrigleys.postgresql.org> References: <20170721141640.19351.88347@wrigleys.postgresql.org> Organization: PostgreSQL Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Thanks for the report Richard, sorry it took me a while to find time to debug. > I’ve been using ecpg as part of my automated test framework to ensure > my > various SQL migrations have proper syntax.  I believe I have run into > an > error where ECPG is reporting a syntax error that does not in fact > exist. I guess I agree, after all ecpg should accept everything that the server accepts, right? :) The problem is that ecpg expects every non-empty returning clause to end with an "into " sectio to store the data in C. This obviously does not make sense. I have to do more tests to see if making the into clause optional breaks other things. If you have a large base of test cases you're welcome to try it out too, once the patch is done. Michael -- Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Meskes at (Debian|Postgresql) dot Org Jabber: michael at xmpp dot meskes dot org VfL Borussia! Força Barça! 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