Selecting more columns in ECPG in one select - error?

From: "Pavel PaJaSoft Janousek" <janousek(at)fonet(dot)cz>
To: "PgSQL Interfaces" <pgsql-interfaces(at)postgresql(dot)org>
Subject: Selecting more columns in ECPG in one select - error?
Date: 1999-04-16 10:03:09
Message-ID: 000301be87f0$55753cc0$0200a8c0@server.fonet2.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hi all,

I have one trouble.. I have this stable:
create table t (col1 varchar (10), col2 varchar (10), col3 int);

and now, I would like this:
exec sql select col1 into :str1, col2 into :str2 from t where col3 = :cislo;

ECPG distributed with PostgreSQL 6.4.2 say: parse error.

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

In PSQL I can do also this: select col1, col2 from t where col3 = <number>;

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

Pavel PaJaSoft Janousek (mailto:janousek(at)fonet(dot)cz)
FoNet, spol. s r.o. (http://www.fonet.cz/)

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ross J. Reedstrom 1999-04-16 16:58:19 Re: [INTERFACES] Getting started with visual query builder in pgaccess
Previous Message Lucas Di Pentima 1999-04-16 02:29:23