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 -> pro*c variable types

pro*c variable types

From: Leigh Richards <palomaverde_at_gmail.com>
Date: 7 Jun 2006 10:58:01 -0700
Message-ID: <1149703081.352936.20970@h76g2000cwa.googlegroups.com>


I'm looking at some pro*c code that has things like this:

  EXEC SQL begin declare section;

     char foo;
  EXEC SQL end declare section;

...

  EXEC SQL select nvl(bar,'null') into :foo from footable a where a.bar = :foo;

where the column type is varchar2(6). The purpose of these queries is simply to tell whether a particular row exists.

It looks like it could cause memory problems. A quick test didn't show any errors, but I'd like to know if this is something that pro*c handles explicitly or whether it is likely to cause problems eventually.

Thanks!
Leigh Received on Wed Jun 07 2006 - 12:58:01 CDT

Original text of this message

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