Re: Porting embedded SQL from Oracle to Postgres

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Daniel Clayton <dwbc(at)hotmail(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Porting embedded SQL from Oracle to Postgres
Date: 2005-10-10 10:27:13
Message-ID: 20051010102713.GA7999@1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Fangbing Wu 2005-10-12 02:59:19 How do I get more error codes from libpq
Previous Message Michael Fuhr 2005-10-10 00:54:59 Re: Porting embedded SQL from Oracle to Postgres