Re: Porting embedded SQL from Oracle to Postgres - Mailing list pgsql-interfaces

From Michael Meskes
Subject Re: Porting embedded SQL from Oracle to Postgres
Date
Msg-id 20051010102713.GA7999@1
Whole thread Raw
In response to Porting embedded SQL from Oracle to Postgres  ("Daniel Clayton" <dwbc@hotmail.com>)
List pgsql-interfaces
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!


pgsql-interfaces by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Porting embedded SQL from Oracle to Postgres
Next
From: Fangbing Wu
Date:
Subject: How do I get more error codes from libpq