pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: zuberre@gmail.com
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #14754: ecpg SQL parsing error
Date: Fri, 11 Aug 2017 15:38:37 +0200
Message-ID: <1502458717.9976.323.camel@postgresql.org> (raw)
In-Reply-To: <20170721141640.19351.88347@wrigleys.postgresql.org>
References: <20170721141640.19351.88347@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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 <variable>" 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



view thread (4+ messages)  latest in thread

Message-ID: <1502458717.9976.323.camel@postgresql.org>
Permalink:  ../1502458717.9976.323.camel@postgresql.org/
Also on:    postgresql.org/message-id/1502458717.9976.323.camel@postgresql.org

 · 

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 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: meskes@postgresql.org, zuberre@gmail.com
  Subject: Re: BUG #14754: ecpg SQL parsing error
  In-Reply-To: <1502458717.9976.323.camel@postgresql.org>
  References: <20170721141640.19351.88347@wrigleys.postgresql.org> <1502458717.9976.323.camel@postgresql.org>

* 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