Selecting more columns in ECPG in one select - error? - Mailing list pgsql-interfaces

From Pavel PaJaSoft Janousek
Subject Selecting more columns in ECPG in one select - error?
Date
Msg-id 000301be87f0$55753cc0$0200a8c0@server.fonet2.cz
Whole thread Raw
Responses Re: [INTERFACES] Selecting more columns in ECPG in one select - error?
List 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@fonet.cz)
FoNet, spol. s r.o. (http://www.fonet.cz/)



pgsql-interfaces by date:

Previous
From: "Ross J. Reedstrom"
Date:
Subject: Re: [INTERFACES] Getting started with visual query builder in pgaccess
Next
From: Yu Cao
Date:
Subject: TBLOCK status from libpq / libpq++