pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Johan Geuze <lorddark@xs4all.nl>
To: pgsql-interfaces@postgreSQL.org
Subject: FETCH / ecpg
Date: Tue, 25 May 1999 18:53:36 +0200
Message-ID: <374AD590.278F8932@xs4all.nl> (raw)

i'm having trouble with FETCH and ecpg..

I just get an compile error on this line


    EXEC SQL BEGIN WORK;
    EXEC SQL DECLARE cursxxx CURSOR FOR
        SELECT nr, xpos, ypos
        INTO :ster, :xpos, :ypos
        FROM stars;

-> EXEC SQL FETCH all in cursxxx;
     EXEC SQL CLOSE cursxxx;
     EXEC SQL COMMIT;

i know this should work.. at least on a informix database..

The man for fetch tells me the same..

what am i doing wrong?

or is this option not supported for enbedded sql in c..?

plz help!

Johan Geuze




Message-ID: <374AD590.278F8932@xs4all.nl>
Permalink:  ../374AD590.278F8932@xs4all.nl/
Also on:    postgresql.org/message-id/374AD590.278F8932@xs4all.nl

 · 

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: lorddark@xs4all.nl
  Subject: Re: FETCH / ecpg
  In-Reply-To: <374AD590.278F8932@xs4all.nl>

* 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