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

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

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

            return(output);
        }