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 JUNE 07, 2011

Applies to:

Precompilers - Version: and later   [Release: 11.2 and later ]
Information in this document applies to any platform.


Defining in Pro*C


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];


Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms