Selecting more columns in ECPG in one select - error?

Поиск
Список
Период
Сортировка
От Pavel PaJaSoft Janousek
Тема Selecting more columns in ECPG in one select - error?
Дата
Msg-id 000301be87f0$55753cc0$0200a8c0@server.fonet2.cz
обсуждение исходный текст
Ответы Re: [INTERFACES] Selecting more columns in ECPG in one select - error?  (Michael Meskes <meskes@postgresql.org>)
Список 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 по дате отправления:

Предыдущее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: [INTERFACES] Getting started with visual query builder in pgaccess
Следующее
От: Yu Cao
Дата:
Сообщение: TBLOCK status from libpq / libpq++