OCIAttrGet with OCI_ATTR_PARAM_COUNT returns incorrect result post migration to 11g client
We are migrating our Tuxedo code to a newer version which involves upgrading compiler and the Oracle client. The database version is same as before.
Previous Oracle client: 9.2.0.1.0
New Oracle client: 11.2.0.4.0
Oracle Database: Oracle Database 11g Release 11.1.0.0.0 - Production
The code compiles fine but when executing Tux services the following call is getting incorrect result for the number of columns:
ociStatus = OCIAttrGet((void *) pDataStore->mphStmt, OCI_HTYPE_STMT, (void *) &numcols, 0, OCI_ATTR_PARAM_COUNT, pDataStore->mphError);
The result comes out to be 42949672960.
I am wondering if something has changed in OCI between Oracle 9i and Oracle11g that is causing this?