Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

unsigned or signed char for VARCHAR2 mapped as SQLT_STR

716196Aug 7 2009 — edited Aug 9 2009
Hi,
What is the recommended C type for the output buffer passed to OCIDefineByPos for a VARCHAR2 column mapped as a SQLT_STR?
Is it unsigned char or (signed) char?

ie given the column
name VARCHAR2(10)

should the C output buffer be
char name[11] or
unsigned char name[11]

Thanks in advance Phil.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 6 2009
Added on Aug 7 2009
4 comments
4,254 views