Received: from mout1.01019freenet.de (exim@mout1.01019freenet.de [62.104.201.3]) by hub.org (8.9.3/8.9.3) with ESMTP id HAA37248 for ; Mon, 14 Jun 1999 07:36:29 -0400 (EDT) (envelope-from Michael.Meskes@gmx.net) Received: from [194.97.109.112] (helo=mx0.01019freenet.de) by mout1.01019freenet.de with esmtp (Exim 3.02 #5) id 10tV2S-0002s9-00; Mon, 14 Jun 1999 13:36:28 +0200 Received: from [212.81.156.134] (helo=pc63.rp-plus.de) by mx0.01019freenet.de with esmtp (Exim 3.02 #5) id 10tV28-0007CC-00; Mon, 14 Jun 1999 13:36:08 +0200 Received: (from meskes@localhost) by pc63.rp-plus.de (8.9.3/8.9.0/Debian/GNU) id JAA00575; Mon, 14 Jun 1999 09:16:47 +0200 Date: Mon, 14 Jun 1999 09:16:47 +0200 From: Michael Meskes To: Brent Waldrop Cc: pgsql-interfaces@postgresql.org Subject: Re: [INTERFACES] esql\c documentation Message-ID: <19990614091647.A562@gmx.net> Mail-Followup-To: Brent Waldrop , pgsql-interfaces@postgresql.org References: <19990614002236.83551.qmail@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <19990614002236.83551.qmail@hotmail.com>; from Brent Waldrop on Sun, Jun 13, 1999 at 07:24:52PM -0500 On Sun, Jun 13, 1999 at 07:24:52PM -0500, Brent Waldrop wrote: > Does anyone know where this is thorough esql\c documentation. I am trying to Unfortunately there is no more than the man page and the sgml file distributed with PostgreSQL. I just didn't find the time to write more. > compile previous examples i used with informix and they will not work for > example when i do > EXEC SQL declare democursor cursor for > select fname,lname > into :fname, :lname > from employee > where lname < :oneline; > ---it bombs at the line with "into" in it saying there is a parse error > and when i do this EXEC SQL fetch democursor; > --it tells me that there is another parse error on this line > is there any better documenation for esql/c than whats available in the > programming manual so that i can figure out what is going on? To the best of my knowledge this is incorrect syntax. For instance Oracle says: The SELECT statement associated with the cursor cannot include an INTO clause. Rather, the INTO clause and list of output host variables are part of the FETCH statement. I cannot find the text in the standard right now, but there also only FETCH is listed with INTO. Please correct me if I'm wrong. Michael -- Michael Meskes | Go SF 49ers! Th.-Heuss-Str. 61, D-41812 Erkelenz | Go Rhein Fire! Tel.: (+49) 2431/72651 | Use Debian GNU/Linux! Email: Michael.Meskes@gmx.net | Use PostgreSQL!