Pro*C
From: Richard Armstrong <richard_at_crowded-house.den.mmc.com>
Date: Thu, 17 Dec 1992 19:54:31 GMT
Message-ID: <1992Dec17.195431.13161_at_den.mmc.com>
Date: Thu, 17 Dec 1992 19:54:31 GMT
Message-ID: <1992Dec17.195431.13161_at_den.mmc.com>
I have plenty of good things to say about Oracle Pro*C. However, let me focus on one area where I find Pro*C completely brain-dead.
I am running v6 on Sun 690's.
Why doesn't the Pro*C precompiler do #define substitutions? For instance, one cannot do the following:
#define MAXLEN 80
EXEC SQL BEGIN DECLARE SECTION;
varchar string[MAXLEN + 1];
EXEC SQL END DECLARE SECTION;
Pro*C doesn't like MAXLEN, so I run the C pre-processor to do the substitution,
but then Pro*C doesn't like the [80 + 1]. So I had to write my own preprocessor
to do the math.
This is my only real show-stopper complaint with Pro*C.
-- My company never said any of this... I didn't either. Richard Armstrong, Software Engineer, Martin Marietta Email->>>> richard_at_crowded-house.den.mmc.com <<<<-EmailReceived on Thu Dec 17 1992 - 20:54:31 CET