Yes, i've discovered that and Oracle uses EXEC ORACLE ifdef ....
So, that means it is not possible to have one and only one source file for a
Proc*c program which could be run on Postgres and Oracle.

Thank for your fast answer.
Thierry

Michael Meskes wrote:

> On Tue, Sep 09, 2003 at 02:48:19PM +0200, Thierry Missimilly wrote:
> > I'm not sure it's a bug or it's normal, so i don't send it to pgsq-bugs.
> > ...
> > So, i use #ifdef ORACLE  #else  #endif preprocessing instructions to
> > differentiate PG from Oracle Pro*c syntaxes.
>
> As a matter of fact we use EXEC SQL IFDEF, ... and do not parse any
> C/CPP code. running cpp before parsing leads to undesirable side
> effects.
>
> Michael
> --
> Michael Meskes
> Email: Michael at Fam-Meskes dot De
> ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: [EMAIL PROTECTED]
> Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!
begin:vcard 
n:Missimilly;Thierry
tel;fax:+33 (0)4 76 29 78 78
tel;work:+33 (0)4 76 29 74 54
x-mozilla-html:FALSE
url:http:\\www.bull.com
org:BIS/R&D
adr:;;Bull SA, 1, rue de provence - BP 208;ECHIROLLES;;38432;FRANCE
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;-18184
fn:Thierry Missimilly
end:vcard
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Reply via email to