Exemple #1
0
        static internal OciHandle GetHandle(OCI.HTYPE handleType)
        {
            OracleConnection.OraclePermission.Demand();

            if (!isInitialized)
            {
                Initialize();
            }

            if (OCI.HTYPE.OCI_HTYPE_ERROR == handleType)
            {
                return(availableErrorHandle);                           // TODO: we probably have thread-safety issues here; can we get some thread affinity?
            }
            return(environmentHandle.CreateOciHandle(handleType));
        }