This work for me:
EXEC SQL FETCH 1 IN exam_cur INTO :ex_id, :wday;
^^^^
I think it must work without '1' also.
-Margarita
On Wed, 28 Apr 1999, Artur Pietruk wrote:
> Hi! I'm new on this mailing-list.
>
> I have problems with ecpg and postgres6.4, it fails when i try to
> fetch cursor, example code:
>
> ---
> EXEC SQL DECLARE M_KURSOR CURSOR FOR
> SELECT te_lo, te_hi
> FROM www_temp
> WHERE te_mias = :t_mias;
>
> EXEC SQL OPEN M_KURSOR;
>
> EXEC SQL FETCH M_KURSOR into :t_lo, :t_hi;
> --- ^^^^^^^^^^^^^^^ This is line 58 of pogodagen.pc.
>
> Ecpg fails with "pogodagen.pc:58: parse error". I have Postgres6.3
> on another machine and everything compiles O.K. What's wrong? Please,
> help me!
>
> Best regards,
>
> --- Artur Pietruk, [EMAIL PROTECTED]
>
>