Skip to content

Commit

Permalink
Test ordinal parameters too
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgi committed Sep 26, 2023
1 parent df0464c commit 52ec379
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DuckDB.NET.Test/Parameters/ParameterCollectionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ public void BindMultipleValuesInvalidOrderTest(string queryStatement)
command.Parameters.Add(new DuckDBParameter("param2", "hello"));
command.Invoking(cmd => cmd.ExecuteNonQuery())
.Should().ThrowExactly<InvalidOperationException>();

command.Parameters.Clear();
command.Parameters.Add(new DuckDBParameter(42));
command.Parameters.Add(new DuckDBParameter("hello"));
command.Invoking(cmd => cmd.ExecuteNonQuery())
.Should().ThrowExactly<DuckDBException>();
}

[Theory]
Expand Down

0 comments on commit 52ec379

Please sign in to comment.