Пример #1
0
        internal IntPtr GetAttributeIntPtr(OciAttributeType attrType, OciErrorHandle errorHandle)
        {
            int    status = 0;
            IntPtr output = IntPtr.Zero;

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

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

            return(output);
        }