pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: Daniel Clayton <dwbc@hotmail.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Porting embedded SQL from Oracle to Postgres
Date: Mon, 10 Oct 2005 12:27:13 +0200
Message-ID: <20051010102713.GA7999@1> (raw)
In-Reply-To: <BAY21-F2D31A3ACF54022DE3EA72DD860@phx.gbl>
References: <BAY21-F2D31A3ACF54022DE3EA72DD860@phx.gbl>

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!



view thread (3+ messages)

Message-ID: <20051010102713.GA7999@1>
Permalink:  ../20051010102713.GA7999@1/
Also on:    postgresql.org/message-id/20051010102713.GA7999@1

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: meskes@postgresql.org, dwbc@hotmail.com
  Subject: Re: Porting embedded SQL from Oracle to Postgres
  In-Reply-To: <20051010102713.GA7999@1>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox