Skip to content

Commit

Permalink
Rename conflicting table function
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgi committed Nov 29, 2024
1 parent 261886d commit 69135ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DuckDB.NET.Test/TableFunctionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public void RegisterTableFunctionWithErrors()
[Fact]
public void RegisterTableFunctionWithNullParameter()
{
Connection.RegisterTableFunction<int>("demo6", (parameters) =>
Connection.RegisterTableFunction<int>("nullParam", (parameters) =>
{
parameters[0].IsNull().Should().BeTrue();
Expand All @@ -216,7 +216,7 @@ public void RegisterTableFunctionWithNullParameter()
writers[0].WriteValue((int)item, rowIndex);
});

var data = Connection.Query<int>($"SELECT * FROM demo6(NULL::INTEGER);").ToList();
var data = Connection.Query<int>($"SELECT * FROM nullParam(NULL::INTEGER);").ToList();

data.Should().BeEquivalentTo(Enumerable.Empty<int>());
}
Expand Down

0 comments on commit 69135ee

Please sign in to comment.