Re: Pro*C - equivalencing strings to arrays
Date: 2000/06/27
Message-ID: <8j9qbj$cl1$1_at_nereid.worldonline.nl>#1/1
Shaun Tancheff <shaun_at_tancheff.com> schreef in berichtnieuws
3953bfab.182241_at_news...
> On Fri, 23 Jun 2000 01:59:49 GMT, cjundieseastwd_at_powerup.com.au
> (Obakesan) wrote:
>
> >
> >Ohhhh another point I wanted to ask about(hit that send too fast ;-)
> >
> >exec sql var fetched.account_code is string;
> >
> >why can't I use
> >EXEC SQL VAR existOrdr.account_code IS STRING (ACCOUNT_CODE_STRING);
> >
> >have I gotta use
> >
> >EXEC SQL VAR existOrdr.account_code IS STRING (10);
>
> The substitution / math is done in the C pre-processor. I don't know
> if there is a portable way to replace/enhance the C pre-processor with
> ESQL translator.
This should be possible with C compilers allowing you to write the preprocessed output to a file. Then the sequence would be:
- create preprocessed file from Pro*C source file (using C compiler with preprocessor flag)
- create C file from preprocessed file (using Pro*C)
- compile C file (using C compiler)
Frido
>
> >
> >
> >really?? this kinda goes against C thinking (or at least mine)
> ESQL/C isn't C, but it is a lot easier that writing directly to the
> API that Pro*C is translating your code to.
>
> >
> >--
> >
> >See Ya
> >(when the bandwidth gets better ;-)
> >Chris Eastwood Please remove undies for reply
> >Photographer, Stunt Programmer WWW ->
www.powerup.com.au/~cjeastwd/
> >Motorcyclist and dingbat
> >
>
> http://shaun.tancheff.com/ /?/ -_-
> :-) shaun ;-] shaun_at_tancheff.com (Shaun Tancheff) .sigs freed
Received on Tue Jun 27 2000 - 00:00:00 CEST