| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Pro*C question
There's a precompiler option "DBMS" (I think), which you can set to V6 or V6_CHAR, which will cause the Pro*C program to use Oracle6 semantics when dealing with character data.
In article <5d33hn$mqj_at_mtinsc03.worldnet.att.net>, Leo Smith
<zhuhw_at_infinet.com> writes
>Table tab has field f as char[4].
>In pc file, var is declared as char[4],
>
>strncpy(var, "abcd", 4);
>
>
>select ...
>from tab
>where f = :var;
>
>works when compiled with Proc*C 1.6,
>
>however when code is compiled in Pro*C 2.3, it blows up,
>it needs var be a null teminated string.
>
>Could anyone explain, is this code problem or Pro*C problem?
>
>Thanks,
>
>Leo
>
-- Ian Funnell ian_at_icf0.demon.co.ukReceived on Sun Feb 02 1997 - 00:00:00 CST
![]() |
![]() |