예제 #1
0
        internal ushort GetAttributeUInt16(OciAttributeType attrType, OciErrorHandle errorHandle)
        {
            int    status = 0;
            ushort output;

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

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

            return(output);
        }