pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: Pavel PaJaSoft Janousek <janousek@fonet.cz>
Cc: PgSQL Interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: [INTERFACES] Selecting more columns in ECPG in one select - error?
Date: Sat, 17 Apr 1999 12:32:08 +0200
Message-ID: <19990417123208.A6263@gmx.net> (raw)
In-Reply-To: <000301be87f0$55753cc0$0200a8c0@server.fonet2.cz>
References: <000301be87f0$55753cc0$0200a8c0@server.fonet2.cz>

On Fri, Apr 16, 1999 at 12:03:09PM +0200, Pavel PaJaSoft Janousek wrote:
> and now, I would like this:
> exec sql select col1 into :str1, col2 into :str2 from t where col3 = :cislo;

Please correct me if I'm wrong but IMO the correct syntax is:

exec sql select col1, col2 into :str1, :str2 from t where col3 = :cislo;

>     In the older version ECPG, distributed in winter 1997 (I think PGSQL
> 6.0..?) I use this syntax without errors.

Yes, that old version did not really check the syntax.

>     Is this error in yacc definition and will be fixed in version 6.5, or
> nobody know this error?

I think the 1997 version is the buggy one.

Michael
-- 
Michael Meskes                         | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz    | Go Rhein Fire!
Tel.: (+49) 2431/72651                 | Use Debian GNU/Linux!
Email: Michael.Meskes@gmx.net          | Use PostgreSQL!



view thread (2+ messages)

Message-ID: <19990417123208.A6263@gmx.net>
Permalink:  ../19990417123208.A6263@gmx.net/
Also on:    postgresql.org/message-id/19990417123208.A6263@gmx.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: meskes@postgresql.org, janousek@fonet.cz
  Subject: Re: [INTERFACES] Selecting more columns in ECPG in one select - error?
  In-Reply-To: <19990417123208.A6263@gmx.net>

* 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