Exemplo n.º 1
0
 internal void ForceOpen()
 {
     if (this._openMode != 0)
     {
         int rc = TracedNativeMethods.OCILobOpen(this.ServiceContextHandle, this.ErrorHandle, this.Descriptor, (byte)this._openMode);
         if (rc != 0)
         {
             this._openMode = 0;
             this.Connection.CheckError(this.ErrorHandle, rc);
         }
     }
 }
Exemplo n.º 2
0
 internal void ForceOpen()
 {
     if (0 != _openMode)
     {
         int rc = TracedNativeMethods.OCILobOpen(
             ServiceContextHandle,
             ErrorHandle,
             Descriptor,
             (byte)_openMode
             );
         if (0 != rc)
         {
             _openMode = 0;                     // failure means we didn't really open it.
             Connection.CheckError(ErrorHandle, rc);
         }
     }
 }