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
When a DbCommand is created from a connection before the connection has been opened a first time, executing the DbCommand results in a NullReferenceException. This is because the SnowflakeDbCommand-constructor assigns the value of the sfSession-property of SnowflakeDbConnection to itself. The problem here is that sfSession is set when opening the connection, meaning that DbCommand assigns a null value if the connection has never been opened. I'm creating a pull request with a fix for this.
Issue description
When a DbCommand is created from a connection before the connection has been opened a first time, executing the DbCommand results in a NullReferenceException. This is because the SnowflakeDbCommand-constructor assigns the value of the sfSession-property of SnowflakeDbConnection to itself. The problem here is that sfSession is set when opening the connection, meaning that DbCommand assigns a null value if the connection has never been opened. I'm creating a pull request with a fix for this.
Example code
Error log
Not required, problem is in the connector itself.
Configuration
Driver version: 1.1.0
Dotnet framework and version: .net standard 2.0
The text was updated successfully, but these errors were encountered: