Skip to content

Commit

Permalink
Updated not-null test to use a nullable column - filter now gets remo…
Browse files Browse the repository at this point in the history
…ved otherwise
  • Loading branch information
MarkMpn committed Jun 21, 2024
1 parent 9ec8644 commit d260783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MarkMpn.Sql4Cds.Engine.Tests/Sql2FetchXmlTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public void FetchFilter()
[TestMethod]
public void NestedFilters()
{
var query = "SELECT accountid, name FROM account WHERE name = 'test' OR (accountid is not null and name like 'foo%')";
var query = "SELECT accountid, name FROM account WHERE name = 'test' OR (employees is not null and name like 'foo%')";

var planBuilder = new ExecutionPlanBuilder(_localDataSources.Values, this);
var queries = planBuilder.Build(query, null, out _);
Expand All @@ -248,7 +248,7 @@ public void NestedFilters()
<filter type='or'>
<condition attribute='name' operator='eq' value='test' />
<filter type='and'>
<condition attribute='accountid' operator='not-null' />
<condition attribute='employees' operator='not-null' />
<condition attribute='name' operator='like' value='foo%' />
</filter>
</filter>
Expand Down

0 comments on commit d260783

Please sign in to comment.