Re: Pro*C - equivalencing strings to arrays

From: Shaun Tancheff <shaun_at_tancheff.com>
Date: 2000/06/23
Message-ID: <3953bfab.182241_at_news>#1/1


[Quoted] 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);

[Quoted] 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.

>
>
>really?? this kinda goes against C thinking (or at least mine)
[Quoted] 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/       /?/                 -_-
[Quoted]   :-) shaun ;-] shaun_at_tancheff.com (Shaun Tancheff) .sigs freed   Received on Fri Jun 23 2000 - 00:00:00 CEST

Original text of this message