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: Pro*C question

Re: Pro*C question

From: Ian Funnell <ian_at_icf0.demon.co.uk>
Date: 1997/02/02
Message-ID: <+Aqf+FAGBS9yIwGS@icf0.demon.co.uk>#1/1

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.uk
Received on Sun Feb 02 1997 - 00:00:00 CST

Original text of this message

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