Re: PRO-C versus GCC (V2.0)
From: Guy Harel <guy_at_mais.hydro.qc.ca>
Date: 26 Feb 93 14:25:33 GMT
Message-ID: <guy.730736733_at_tdsb-s>
Date: 26 Feb 93 14:25:33 GMT
Message-ID: <guy.730736733_at_tdsb-s>
stephane_at_mais.hydro.qc.ca (User Stephane) writes:
>The problem is when i try to use an ORACLE PRO-C program, inserting
>a double or float value into a table, i get a core dumped. The problem
>is occuring only when i use GCC compiler, no problem with /usr/5bin/CC.
>I don't know if it depends on the compiler or linker or Precompiler or
>maybe a compiler switch, linker switch or precompiler switch?
I have the same problem using the SUN compiler '/usr/bin/cc'. Consider the following which fails:
EXEC SQL BEGIN DECLARE SECTION; char *id = "/"; float var1 = 1111.1111; EXEC SQL END DECLARE SECTION; EXEC SQL INSERT INTO T1(x) values ( :var1 );
Replacing ':var1' by a constant, does not fail?
-- Guy HarelReceived on Fri Feb 26 1993 - 15:25:33 CET