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
-using statement on connection should auto-dispose connection, but doesn't -> (should override Dispose & call Close)
-should allow connection to be opened in command?
Example code
//THIS WORKS AND CLOSES CONNECTIONvarcon=newSnowflake.Data.Client.SnowflakeDbConnection();con.ConnectionString="CONNECTION_STRING_HERE";try{con.Open();using(varcmd=newSnowflake.Data.Client.SnowflakeDbCommand(con)){//cmd.CommandType = CommandType.Text;cmd.CommandText=query;using(varda=newSnowflake.Data.Client.SnowflakeDbDataAdapter(cmd)){da.Fill(dt);}}}finally{con.Close();}//THIS DOESN'T WORK AND FAILS TO CLOSE CONNECTIONusing(varcon=newSnowflake.Data.Client.SnowflakeDbConnection()){con.ConnectionString="CONNECTION_STRING_HERE";using(varcmd=newSnowflake.Data.Client.SnowflakeDbCommand(con)){cmd.CommandType=CommandType.Text;cmd.CommandText=query;con.Open();using(varda=newSnowflake.Data.Client.SnowflakeDbDataAdapter(cmd)){da.Fill(dt);}}//con.Close(); //This line doesn't matter since exception happens above and gets bypassed}
Configuration
Snowflake.Data(1.0.4)
netcoreapp2.0
The text was updated successfully, but these errors were encountered:
Issue description
-using statement on connection should auto-dispose connection, but doesn't -> (should override Dispose & call Close)
-should allow connection to be opened in command?
Example code
Configuration
Snowflake.Data(1.0.4)
netcoreapp2.0
The text was updated successfully, but these errors were encountered: