Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> CHAR_MAP=STRING results in 1403 error on FETCH
Using dynamic SQL method 3, could not figure out why
SELECT x FROM t where z = :v1;
did not work when using
OPEN x USING :var;
but if I did this...
SELECT x FROM t WHERE z = '%s';, and substituted %s with the value of
var,
then OPEN (without USING), it worked fine.
narrowed it down to the CHAR_MAP=STRING compiler option. When I removed it, all was well on first approach.
var is defined as a host variable:
char var[5];
and initilized with:
strcpy(var, somecharptr);
Can anyone offer some insight and/or a work around? Received on Fri Nov 09 2001 - 08:05:27 CST