Oracle OCI DatesLocked
I have a question around the Oracle OCI.
I have a datatype of ub1, in oratypes.h this is defined as an unsigned char (6 chars with null terminator “\0”). however, when referencing the values, it appears the code i am debugging is referencing as array variables and not as char values.
The code is as follows:
// Converts an Oracle OCI external date/time structure (char)
// into date a string format acceptable to Vectus.
static void OracleDateToStr(ub1 *date, short ind, char *buffer)
if (ind != 0)
buffer = 0;
sprintf(buffer, “%02d/%02d/%04d”, (int) date, (int) date,
((int) date – 100) * 100 + ((int) date – 100));
I guess my question is this…
What is ub1? Is it a char? in which case my code is missing the second char of each section for dd/mm, or is it an array?
Any help would be much appreciated!