File tree Expand file tree Collapse file tree
Xtensive.Orm.Oracle/Sql.Drivers.Oracle Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public override ICharacterLargeObject CreateCharacterLargeObject()
5656 public override void BeginTransaction ( )
5757 {
5858 EnsureIsNotDisposed ( ) ;
59- EnsureTransactionIsNotActive ( ) ;
59+ EnsureTransactionIsNotActive ( ) ;
6060 activeTransaction = underlyingConnection . BeginTransaction ( ) ;
6161 }
6262
Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ public virtual void Open()
175175 /// <param name="initializationScript">Initialization script.</param>
176176 public virtual void OpenAndInitialize ( string initializationScript )
177177 {
178+ EnsureIsNotDisposed ( ) ;
178179 UnderlyingConnection . Open ( ) ;
179180 if ( string . IsNullOrEmpty ( initializationScript ) ) {
180181 return ;
@@ -193,6 +194,7 @@ public virtual void OpenAndInitialize(string initializationScript)
193194 public virtual Task OpenAsync ( CancellationToken cancellationToken )
194195 {
195196 cancellationToken . ThrowIfCancellationRequested ( ) ;
197+ EnsureIsNotDisposed ( ) ;
196198 return UnderlyingConnection . OpenAsync ( cancellationToken ) ;
197199 }
198200
@@ -205,6 +207,7 @@ public virtual Task OpenAsync(CancellationToken cancellationToken)
205207 public virtual async Task OpenAndInitializeAsync ( string initializationScript , CancellationToken token = default )
206208 {
207209 token . ThrowIfCancellationRequested ( ) ;
210+ EnsureIsNotDisposed ( ) ;
208211 await UnderlyingConnection . OpenAsync ( token ) . ConfigureAwait ( false ) ;
209212 if ( string . IsNullOrEmpty ( initializationScript ) ) {
210213 return ;
@@ -238,7 +241,7 @@ public virtual void Close()
238241 public virtual Task CloseAsync ( )
239242 {
240243 EnsureIsNotDisposed ( ) ;
241- await UnderlyingConnection . CloseAsync ( ) ;
244+ return UnderlyingConnection . CloseAsync ( ) ;
242245 }
243246
244247 /// <summary>
You can’t perform that action at this time.
0 commit comments