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 -> Re: Wierd problem Does C or Oracle pad a host variable with spaces in embedded SQL?

Re: Wierd problem Does C or Oracle pad a host variable with spaces in embedded SQL?

From: Jamie Keir <jkerr_at_jameswatt.ac.uk>
Date: Wed, 08 Apr 1998 16:47:07 +0100
Message-ID: <352B9BFB.3657E22D@jameswatt.ac.uk>


Tony wrote:

<snip>
> The problem is that the resulting laborcode in labtrans is always 16
> characters long. If the selected laborcode from labor is less (i.e. JEDRF)
> then it padds the field with spaces to equal 16 characters. Is this a
> function of the embedded sql in C? Or of Oracle

I think it's Oracle being helpful. There's a init<..>.ora parameter called blank_trimming which may help - don't know if it affects Pro*C or not. Try adding

blank_trimming = TRUE

to tour ini.ora file.

HTH Jamie Keir

Ps. You could always try something like "Name[strlen(Name)] = 0;" in C. Received on Wed Apr 08 1998 - 10:47:07 CDT

Original text of this message

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