My Oracle Support Banner

Pro*C: Code Creation Result In Different Lenght of VARCHAR "arr" Element When Variable Is Single Or Multi-Dimensional (Doc ID 1325002.1)

Last updated on MARCH 01, 2019

Applies to:

Precompilers - Version 11.2.0.2 and later
Information in this document applies to any platform.

Symptoms

Defining in Pro*C

VARCHAR a[4]


results in the generated code in

/* VARCHAR a[4]; */
struct { unsigned short len; unsigned char arr[4]; } a;


Doing the same for a multidimensional array like

VARCHAR b[10][4];


results in

/* VARCHAR b[10][4]; */
struct { unsigned short len; unsigned char arr[6]; } b[10];

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.