Home » Developer & Programmer » Precompilers, OCI & OCCI » /* cud (compilation unit data) array */
/* cud (compilation unit data) array */ [message #270018] Tue, 25 September 2007 07:46 Go to next message
puneetshadija
Messages: 2
Registered: December 2005
Location: PILANI
Junior Member

Sir,

Need a small help, kind of stuck with this code generated by the Pro*C compiler ...

...
/* SQLLIB Prototypes */
extern void sqlcxt (void **, unsigned int *,
struct sqlexd *, const struct sqlcxp *);
extern void sqlcx2t(void **, unsigned int *,
struct sqlexd *, const struct sqlcxp *);
extern void sqlbuft(void **, char *);
extern void sqlgs2t(void **, char *);
extern void sqlorat(void **, unsigned int *, void *);

/* Forms Interface */
static const int IAPSUCC = 0;
static const int IAPFAIL = 1403;
static const int IAPFTL = 535;
extern void sqliem(char *, int *);

typedef struct { unsigned short len; unsigned char arr[1]; } VARCHAR;
typedef struct { unsigned short len; unsigned char arr[1]; } varchar;

/* cud (compilation unit data) array */
static const short sqlcud0[] =
{12,4130,31,0,0,
5,0,0,1,77,0,3,253,0,0,2,2,0,1,0,1,6149,0,0,1,6149,0,0,
28,0,0,2,80,0,2,278,0,0,2,2,0,1,0,1,6149,0,0,1,6149,0,0,
51,0,0,3,95,0,4,499,0,0,3,1,0,1,0,2,3,0,0,2,68,0,0,1,6149,0,0,
78,0,0,4,102,0,2,510,0,0,3,3,0,1,0,1,6149,0,0,1,3,0,0,1,68,0,0,
};



#define ORACLE
#define SQL_READ_ONLY

...


Can you please suggest the significance of the above text in BOLD ...

Hoping for a positive reply.

Regards,

Puneet
Re: /* cud (compilation unit data) array */ [message #690379 is a reply to message #270018] Thu, 24 July 2025 08:37 Go to previous message
v-king
Messages: 1
Registered: July 2025
Junior Member
I have the same issue; I don't know enough to make the compiler works with some database methods, so I have to figure out what the SQLCUD0 constant means.

I've found the followings : each line represent a different SQL call compiled from .pc file qith proC.
[offset,?,?,enumerated sql line starting from 1, ?,?,?, and then infos about each variable used.
In my case I have 12 SQL lines, they've got all those values :
[offset,0,0,enumerated line,?,0,?,?,0,0,?,?,0,1,0 (some stops here, the others continue with various numbers depending on the number of variable used).

Hopes that will help some and I hope some can give me the missing variables.

Thanks,

Gab
Previous Topic: Error ORA-01480: trailing null missing from STR bind value
Goto Forum:
  


Current Time: Sun Aug 17 18:13:56 CDT 2025