Re: Porting embedded SQL from Oracle to Postgres
От | Michael Meskes |
---|---|
Тема | Re: Porting embedded SQL from Oracle to Postgres |
Дата | |
Msg-id | 20051010102713.GA7999@1 обсуждение исходный текст |
Ответ на | Porting embedded SQL from Oracle to Postgres ("Daniel Clayton" <dwbc@hotmail.com>) |
Список | 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 по дате отправления: