Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Breaking lines in Pro*C programs - Linux env RH AS 3.0 Oracle 9.2.4.0

Re: Breaking lines in Pro*C programs - Linux env RH AS 3.0 Oracle 9.2.4.0

From: <raphael.duenas_at_agfa.com>
Date: 22 Sep 2006 05:55:24 -0700
Message-ID: <1158929724.429562.21580@d34g2000cwd.googlegroups.com>


Laurenz Albe a écrit :

> I think that you are mixing up two different things:
>
> a) Line continuation in SQL statements
> b) Breaking up C string constants into multiple lines.
>
> The first one should work at least in 10g, see
> http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14407/pc_02prc.htm#sthref139
>
> Example:
> EXEC SQL INSERT INTO t VALUES('example of a \
> split string');
>
> The second seems to make Pro*C choke.
>
> Example:
> printf("This won't\
> work\n");
>
> Can you see the difference?
>
> Have you tried:
> printf("This might "
> "work\n");
>
> Yours,
> Laurenz Albe

Hi ,

Your last method method works, it's a very good thing and I now I can compile my LinuxRH/Oracle9 distribution but I've to modify ... 150 programs ... sigh ....

but Why Pro*C chokes now , perhap's this Pro*C version ?!?!?

Thank you very much,
Raphaël Duenas. Received on Fri Sep 22 2006 - 07:55:24 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US