X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4D1CED9AA6 for ; Mon, 10 Oct 2005 07:27:23 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 70575-03 for ; Mon, 10 Oct 2005 10:27:17 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by svr1.postgresql.org (Postfix) with ESMTP id 645FDD9A9A for ; Mon, 10 Oct 2005 07:27:16 -0300 (ADT) Received: from p50894EBA.dip.t-dialin.net [80.137.78.186] (helo=feivel) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0MKwh2-1EOusF2gBX-0007fp; Mon, 10 Oct 2005 12:27:15 +0200 Received: by feivel (Postfix, from userid 1000) id 1CA1F4B0C3; Mon, 10 Oct 2005 12:27:13 +0200 (CEST) Date: Mon, 10 Oct 2005 12:27:13 +0200 From: Michael Meskes To: Daniel Clayton Cc: pgsql-interfaces@postgresql.org Subject: Re: Porting embedded SQL from Oracle to Postgres Message-ID: <20051010102713.GA7999@1> Mail-Followup-To: Daniel Clayton , pgsql-interfaces@postgresql.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 X-Provags-ID: kundenserver.de abuse@kundenserver.de login:da5cff6069dd6897c77170232368d0ba X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.039 required=5 tests=[AWL=0.039] X-Spam-Level: X-Archive-Number: 200510/8 X-Sequence-Number: 5770 On Mon, Oct 10, 2005 at 10:57:37AM +1300, Daniel Clayton wrote: > I am getting an error when attempting to compile using ecpg. > > ERROR: syntax error at or near "TYPE" > ... > EXEC SQL TYPE internalCompiledData_t is LONG VARRAW(RAW_BUFFER_SIZE); Just trying precompiling this statement gives: t.pgc:1: ERROR: syntax error at or near "VARRAW" And this is the expected result as ECPG does not know the VARRAW datatype. I would be interested to implement this however if I find the time. > It appears that the syntax EXEC SQL TYPE .. is ... ; is Oracle specific, is > there a matching syntax for ecpg? > Or possibly a different way to achieve this datatype equivalencing? Could you send me a file where ecpg does not accept the TYPE command? It should be available as long as you use variable types ecpg recognizes. Michael -- Michael Meskes Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!