Exemple #1
0
        internal sbyte GetAttributeSByte(OciAttributeType attrType, OciErrorHandle errorHandle)
        {
            int   status = 0;
            sbyte output;

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

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

            return(output);
        }