pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tim Kane <timk@hotgames.com>
To: pgsql-interfaces@postgresql.org
Subject: ECPG and FETCH
Date: Wed, 05 Jan 2000 18:04:52 +1100
Message-ID: <3872ED14.3AEB1DAA@hotgames.com> (raw)


First of all, ECPG doesn't seem to recognise the FETCH command at all,
returning with Syntax Error (see below).

Secondly, are there any postgres specific Embedded SQL docs around
'anywhere'?
I've already have a few difficulties with subtle differences between
different precompiler syntax, and it's becoming frustrating.


eg:

EXEC SQL DECLARE rowcur CURSOR FOR
           SELECT prod_id, name, format
           FROM products
           WHERE name like '%ABC%';

EXEC SQL OPEN rowcur;

for (i=0; i<5; i++)
{
   EXEC SQL FETCH rowcur INTO :prod_id, :title, :format;
   // Do something.
}




view thread (6+ messages)  latest in thread

Message-ID: <3872ED14.3AEB1DAA@hotgames.com>
Permalink:  ../3872ED14.3AEB1DAA@hotgames.com/
Also on:    postgresql.org/message-id/3872ED14.3AEB1DAA@hotgames.com

 · 

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: timk@hotgames.com
  Subject: Re: ECPG and FETCH
  In-Reply-To: <3872ED14.3AEB1DAA@hotgames.com>

* 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