From: Daniel Clayton <dwbc@hotmail.com>
To: pgsql-interfaces@postgresql.org
Subject: Porting embedded SQL from Oracle to Postgres
Date: Mon, 10 Oct 2005 10:57:37 +1300
Message-ID: <BAY21-F2D31A3ACF54022DE3EA72DD860@phx.gbl> (raw)
I am getting an error when attempting to compile using ecpg.
ERROR: syntax error at or near "TYPE"
This code was originally written for Oracle using Pro*/C
from header:
#define RAW_BUFFER_SIZE 524287
typedef struct {
long len;
char buffer[RAW_BUFFER_SIZE];
} internalCompiledData_t;
from .pgc :
EXEC SQL TYPE internalCompiledData_t is LONG VARRAW(RAW_BUFFER_SIZE);
static internalCompiledData_t compiledData;
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?
Thanks in advance.
Daniel.
_________________________________________________________________
Find the coolest online games @ http://xtramsn.co.nz/gaming
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: dwbc@hotmail.com
Subject: Re: Porting embedded SQL from Oracle to Postgres
In-Reply-To: <BAY21-F2D31A3ACF54022DE3EA72DD860@phx.gbl>
* 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