Typo and bug in collection elements handling
Open source C and C++ library for accessing Oracle Databases
Brought to you by:
vince_del_paris
Hi Vincent,
I found few bugs in collection elements handling introduced since last few updates.
Now:
if (!elem->obj)
{
func_init;
}
if (!elem->obj)
{
....
Should be:
if (!elem->obj)
{
func_init;
}
if (elem->obj)
{
....
if (elem->typinf->cols[0].datatype == OCI_CDT_OBJECT)
{
OCI_Object obj = (OCI_Object ) elem->obj;
if (obj != NULL)
{
elem->pind = obj->tab_ind;
}
}
else
{
if (elem->pind != NULL)
{
*elem->pind = value;
}
}
Thanks.
Also try to comment all legacy macro at the and of ocilib.h and eliminate few compilation errors in library.
Thanks.
Hi,
Can you be more precise with the issues related with legacy macros and compilation errors ?
Regards,
Vincent
I've fixed issues related to element indicators and compilation issues (don_t have a clue how I could have committed a ocilib.h file in that state....)
But i don't get your statement related to legacy macros...