Skip to content

Commit

Permalink
fix(csharp/client/adbcconnection): reset AdbcStatement on dispose (#1289
Browse files Browse the repository at this point in the history
)

sets the AdbcStatement to null when disposing (BigQuery fails if this
does not happen)

---------

Co-authored-by: David Coe <coedavid@umich.edu>
  • Loading branch information
davidhcoe and David Coe authored Nov 14, 2023
1 parent 864da78 commit 715a06a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions csharp/src/Client/AdbcConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ protected override void Dispose(bool disposing)
{
this.adbcConnectionInternal?.Dispose();
this.adbcConnectionInternal = null;
this.adbcStatement = null;

base.Dispose(disposing);
}
Expand Down

0 comments on commit 715a06a

Please sign in to comment.