You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit: This issue is present in v2.2.1 but not v2.0.0
When creating an SqliteDataReader using CommandBehavior.CloseConnection from an SqliteCommand which is disposed the reader and connection are closed prematurely.
Steps to reproduce
using(varcmd=GetDbCommand(statement)){if(cmd.Connection.State!=ConnectionState.Open)cmd.Connection.Open();cmd.CommandType=statement.Type;if(statement.Parameters!=null){// AddRange(...) seems to have a bug in SqliteCommandforeach(varparameterinstatement.Parameters)cmd.Parameters.Add(parameter);}returnawaitcmd.ExecuteReaderAsync(CommandBehavior.CloseConnection).ConfigureAwait(false);}
Further technical details
Operating system: Ubuntu 18.04
From a very quick look it seems that the call shown below to this.DataReader.Dispose() on SqliteCommand is being called and the CommandBehavior is ignored.
BUT the architecture I have in mind for #14044 will remove the need to dispose SqliteCommand objects. It will also allow them to be disposed while their SqliteDataReader is open.
Edit: This issue is present in v2.2.1 but not v2.0.0
When creating an SqliteDataReader using CommandBehavior.CloseConnection from an SqliteCommand which is disposed the reader and connection are closed prematurely.
Steps to reproduce
Further technical details
Operating system: Ubuntu 18.04
From a very quick look it seems that the call shown below to this.DataReader.Dispose() on SqliteCommand is being called and the CommandBehavior is ignored.
The text was updated successfully, but these errors were encountered: