Example #1
0
        internal int GetAttributeInt32(OciAttributeType attrType, OciErrorHandle errorHandle)
        {
            int status = 0;
            int output;

            status = OciCalls.OCIAttrGetInt32(Handle,
                                              HandleType,
                                              out output,
                                              IntPtr.Zero,
                                              attrType,
                                              errorHandle);

            if (status != 0)
            {
                OciErrorInfo info = OciErrorHandle.HandleError(errorHandle, status);
                throw new OracleException(info.ErrorCode, info.ErrorMessage);
            }

            return(output);
        }