diff --git a/Snowflake.Data.Tests/UnitTests/SFDbCommandTest.cs b/Snowflake.Data.Tests/UnitTests/SFDbCommandTest.cs index 714d237d2..e595002ad 100644 --- a/Snowflake.Data.Tests/UnitTests/SFDbCommandTest.cs +++ b/Snowflake.Data.Tests/UnitTests/SFDbCommandTest.cs @@ -60,9 +60,9 @@ public void TestCommandExecuteAsyncThrowsExceptionWhenCommandTextIsNotSet() } [Test] - public void TestCommandPrepareThrowsNotImplemented() + public void TestCommandPrepareShouldNotThrowsException() { - Assert.Throws(() => command.Prepare()); + Assert.DoesNotThrow(() => command.Prepare()); } } } diff --git a/Snowflake.Data/Client/SnowflakeDbCommand.cs b/Snowflake.Data/Client/SnowflakeDbCommand.cs index 15d8e0870..b52d53643 100755 --- a/Snowflake.Data/Client/SnowflakeDbCommand.cs +++ b/Snowflake.Data/Client/SnowflakeDbCommand.cs @@ -239,9 +239,12 @@ public override async Task ExecuteScalarAsync(CancellationToken cancella return DBNull.Value; } + /// + /// Prepares the command for execution. + /// This method is currently not implemented and acts as a no-operation (Noop). + /// public override void Prepare() { - throw new NotImplementedException(); } public string GetQueryId()