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

Home -> Community -> Usenet -> c.d.o.server -> Problems with OCI PL/SQL and '\r'

Problems with OCI PL/SQL and '\r'

From: Arien Malec <amalec_at_slip.net>
Date: Wed, 01 Sep 1999 10:40:40 -0700
Message-ID: <37CD6517.1A45541B@slip.net>


All --

I have an OCI program which is creating PL/SQL. If the string I pass to OCIExecute has a '\r' character, this is flagged as a syntax error. So, some questions:

  1. If I use the text file from which came the creation text in sqlplus, everything works fine: I presume sqlplus is filtering the text? (I know that it removes blank lines, and the like).
  2. Is there some cannonical form that the OCI/PL/SQL compiler expects to be passed? For what other characters should I filter?
  3. I'm using 8.1.5 on Linux: is the cannonical form for text to pass to the PL/SQL execution engine different on Windows?
  4. Is there any documentation on this anywhere? I can't find it in the OCI manual.
  5. In my program, if I pass text with a '\r' I get a segmentation fault within OCILogoff. Same text w/out the \r works fine. I don't believe that my program is sensitive to \r characters (and so might be overwriting the env and err memory areas). Is this a bug with the OCI that anyone has heard about before?

Many thanks,
Arien Received on Wed Sep 01 1999 - 12:40:40 CDT

Original text of this message

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